title: Wait till process is no longer running OR until timeout has passed, whichever happens first
body: <p>I want to  kill a process running on the machine using taskkill if they're  still running after X seconds (a windows service was stopped but it takes time for processes to dissapear)
  What's the most correct way to accomplish the above in C# (.net 2.0 or possibly 3.0)?</p>
  
  <p>I've utility method for verifying whether a process is still running, given the process name  (using <code>Process.GetProcesses()</code>). 
  (As the process is not spawned by my code, I can't use WaitTillExit to know when it's no longer running)</p>
  
  <p>PS: the process runs on a remote machine</p>