throwing exceptions in the tasks