Throwable handling in task processing