I have a C# Console application that is executed using the windows server 2008 task scheduler, however when an exception occurs inside the application I still get "Task Completed" in the event log. I would like to trigger a task failed when an exception occurs.