private static void KillProcess(Process px, string rom) { try { ScreenCapture.AddScreenCaptureToGameList(rom); px.Kill(); Process[] backGlasses = Process.GetProcessesByName("B2SBackglassServerEXE"); foreach (Process backGlass in backGlasses) { backGlass.Kill(); } Process[] ultraDMDs = Process.GetProcessesByName("UltraDMD"); foreach (Process ultraDMD in ultraDMDs) { ultraDMD.Kill(); } } catch { } }