Add callback so sheets cancel pending operations and cleanup when they're about to be dismissed.