public void Shutdown()
{
run("shutdown");
Logger.Write("Shutdown sent");
if (_pluginLoop != null) {
Logger.Write("Joining thread");
_pluginLoop.Join();
}
if (_process != null) {
if (!_process.HasExited) {
Logger.Write("Killing process");
_process.Kill();
}
}
}