Improved Query::__destruct