readThread loop is now broken when there is no COM port  open