Added notification on task failure.