Implement the async operation cancellation.