Event process.thisProcessExit
Before this process exits, either normally or on unhandled exception.
public static event Action<Exception> thisProcessExit
Remarks
The event handler is called on System.AppDomain.ProcessExit (then the parameter is null
) and System.AppDomain.UnhandledException (then the parameter is Exception).