Cancel the in-flight queries when the resolution has been finished already