Support query cancellation