fix deadlock bug when close serial port

avoid deadlock when calling Close on the SerialPort in response to a GUI
event.  so sall serialPort.Close() on a separate thread.