public void Stop() { // cleanup workermanager.Stop(); webgui.Stop(); workmanager.Dispose(); }
static void Stop() { KeyboardDeviceManager.StopListener(); WebGUI.Stop(); Environment.Exit(0);// Ensure any loose threads die... }