Implemented Cancel message and logic for how to handle the message on client and server side