Added raising of exception events inside task