/// <summary> /// Terminates the server with all its subthreads and closes the application /// </summary> public static void TerminateServer() { if (MessageBox.Show("Terminate Server?", "Warning! Possible data loss", MessageBoxButtons.YesNo) == DialogResult.Yes) { SessionManager.AbortAllSessions(); CleanUpSessionFolders(); Application.Exit(); } }