protected override void OnStop() { if (httpModule != null) { httpModule.stopModule(); } if (rabbitMqModule != null) { rabbitMqModule.stopModule(); } if (scriptExecutor != null) { scriptExecutor.closeRunspacePool(); } logInfo("The service has been stopped."); }