prevent a disconnected serial port from causing the CPU to spin