Fix exchange client leak when queries are abandoned

The query purger in StatementResource wasn't calling close() on query objects when purging
them from the list of active queries. As a result, abandonded queries would result
in StatementResource leaking an exchange client