Cleanup
Make query automatically call cancel() on timeout