Auto-throw exceptions when resuming tasks