Check the posting made at http://www.jebarson.info/1/post/2010/11/recovering-your-application-from-unhandled-exception-in-net.html