static SimpleLog() { // Attach to process exit event AppDomain.CurrentDomain.ProcessExit += CurrentDomainProcessExit; }