/// <summary>Method used to terminate the node health monitoring service.</summary> protected override void ServiceStop() { if (!ShouldRun(conf)) { return; } if (nodeHealthScriptScheduler != null) { nodeHealthScriptScheduler.Cancel(); } if (shexec != null) { SystemProcess p = shexec.GetProcess(); if (p != null) { p.Destroy(); } } }