private void Process_Exited(object sender, EventArgs e) { try { Dispose(); Exited.Raise(this, new EventArgs()); } catch (Exception ex) { Trace.WriteLine("[Error] " + ex.Message); } }