Use ping event to detect & destroy unused queries