private void onCancel() { if (!Cancel.IsNull() && Cancel()) { _aborted = true; if (!Process.IsNull() && !Process.HasExited) { Process.StandardInput.Write('q'); } } }