Set onAbort callback for user cancellation.