public void Kill() { //If there was another process running, kill it if (Process == null) return; try { if (!Process.HasExited) { Process.Kill(); } Process.Close(); } catch (Exception ex) { Trace.WriteLine(ex); } }