Serial Connection: Improvement to react to USB cable disconnection