title: Calling Environment.Exit in a windows service
body: <p>Does calling Environment.Exit from within a Windows service make the SCM call the onStop() method of the service, or is this behaviour unpredictable ?</p>
  
  <p>I have a couple of Windows services that have this code. Unfortunately, I cant remove this behaviour. But I need to know whether onStop() will be called to decide whether to put some common stopping code in that method or within the method that calls Environment.Exit.</p>