Throws the task failure, if any. Does nothing if the task did not fail.
Calling this method is meaningful only after the task has been executed.