void HandleCancellation(MessageHandlerArgs args)
 {
     if (cancelledThunk())
     {
         args.Stop();
     }
 }