protected static void ServerProcess_Exited(object sender, EventArgs e) { if (Exited != null) Exited(); ServerProcess.Close(); ServerProcess = null; }