Fixing USB comms error handling