Fix a problem when an USB serial port goes away.