When on GETFAIL is called, is it possible to distinguish between the failure caused by the user clicking the cancel button and a comms failure.

(I want a script to ask the sender to retry if it is a comms failure but not if it is a user cancellation - so I need to be able to distinguish between them.)