protected virtual void OnSystemShutdown()
{
// Notify service event consumers of pending service shutdown
SendServiceStateChangedResponse(ServiceState.Shutdown);
// Notify service event consumers that service has shutdown
if ((object)SystemShutdown != null)
SystemShutdown(this, EventArgs.Empty);
}