HUE-1845 [impala] Automatic query closing

made query history state expired when closing queries