You can cancel (close) an OLAP query result set with the CANCEL QUERY
statement.

CANCEL QUERYid |_ALL_;

The id is the unique result set identifier returned from
the LIST QUERIES statement. Cancelling a query will stop the query processing
and close the result set on the server. If the _ALL_ keyword is specified,
then all running queries will be cancelled.