update

solve the problem which closing the serial port thread will cause errors