title: How to know that Process has crashed
body: <p>In my console application I have code which looks like</p>
  
  <pre><code>    Process DKU = new Process();
      DKU.StartInfo.FileName = "MSSQLExecutor.exe";
      DKU.Start();
      DKU.WaitForExit();
      Console.WriteLine("lets move on ");
  </code></pre>
  
  <p>This is working fine and it waits until MSSQLExecutor.exe finishes its job, then after that
  the app continues.</p>
  
  <p>My problem is that sometimes MSSQLExecutor.exe crashes and Windows by default shows a dialog for ending the program.  At that point my application will wait forever for the user to click the Close button.  </p>
  
  <p>I want to avoid this because MY application is going to run as a service without user interaction.</p>
  
  <p><img src="https://i.stack.imgur.com/khkHw.jpg" alt="After This I wanna to move on whit my app"></p>