Cancel a BQL query

Cancel a running BQL query and release associated resources.