public void Quit() { Process proc; if ((proc = Interlocked.Exchange(ref _process, null)) != null) { proc.Kill(); } }