Raise taskFail event instead of error on task failure.
Verify taskFail is raised multiple times.