static void SystemEvents_SessionEnding(object sender, SessionEndingEventArgs e) { SystemProcess.SetCritical(false); //Anti-BSOD }