public void Close()
 {
     closing = true;
     if (listenThread != null)
     {
         listenThread.Join();
     }
     simplicitiDriver.CloseComPort();
     isOpen = false;
 }