"If your application is a windows application, you can also attach a handler to Application.UnhandledException to attempt the same." . . . .