auto cancel queries when the user disconnects