void restartWorker() { wmisession.Log("Restart worker"); workerProcess.Stop(false); workerProcess = null; if (running) { getConsoleAndSpawn(); } }