Invoke Stop when system is shutting down

* When using the Windows Service Host, stop the services when the system
  is shutting down.