Function
Cancels the flow.
This sends the client an immediate cancellation message and stops the flow. It also removes any outstanding requests for the client if there are any.