/// <summary> /// Disconnected from control board /// </summary> public void Disconnect() { handSwitchCheckThread.Abort(); pcuCommunicationThread.Abort(); handSwitchCheckThread = null; pcuCommunicationThread = null; ioport.Close(); consoleport.Close(); ioport = null; consoleport = null; this.isConnected = false; }