private void Form1_FormClosed(object sender, FormClosedEventArgs e) { HIDDLLInterface.DisconnectFromHID(); tcp.StopServer(); botQueue.Stop(); }