HUE-994 [impala] Close queries

Close Impala query when leaving the result page.
Also close canceled queries.