title: handle exit event of child process
body: <p>I have a console application and in the Main method. I start a process like the code below, when process exists, the Exist event of the process is fired but it closed my console application too, I just want to start a process and then in exit event of that process start another process.</p>
  
  <p>It is also wired that process output is reflecting in my main console application.</p>
  
  <pre><code>
  Process newCrawler = new Process();
  newCrawler.StartInfo = new ProcessStartInfo();
  newCrawler.StartInfo.FileName = configSection.CrawlerPath;
  newCrawler.EnableRaisingEvents = true;
  newCrawler.Exited += new EventHandler(newCrawler_Exited);
  
  newCrawler.StartInfo.Arguments = "someArg";
  newCrawler.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
  newCrawler.StartInfo.UseShellExecute = false;
  newCrawler.Start();
  
  </code></pre>