ConsoleApplication.UnhandledException Event
Occurs when a RuntimeException occurs that is not otherwise handled. This event allows you to do any last-minute clean-up, but the application does not resume after this event.
Syntax
UnhandledException
The application terminates after this event.