void ServiceThreadShutdown() { try { try { Refresher.Dispose(); Disposer.Dispose(); } catch (Exception ex) { wmisession.Log("Errors disposing of threads: " + ex.ToString()); throw; } wmisession.Log("Guest Agent Stopped"); try { wmisession.Dispose(); } catch { } } catch {} finally { WmiBase.Reset(); } }