public void StopInstance() { try { _log.Log(LogCatagory.Info, "Service runner stopping..."); _serviceRunner.GracefulShutdown(); _log.Log(LogCatagory.Info, "Service runner stopped."); } catch (Exception e) { _log.Log(LogCatagory.Error, e, String.Format("ServiceInstance caught an unexpected exception on stop.")); } finally { InstanceStopped.Set(); } }