private void Exit(string message) { _eventLog.WriteEntry(message, EventLogEntryType.Error); _thread = null; _instance = null; InvokeStopping(new SqlTraceService.StoppingEventArgs { Reason = message }); }