Added catch if serial device is disconnected