HomeIn-Portal Phabricator

Fixes INP-1762 - Destroy query object before logging