killQuery works well. But, it requires refactoring.