Reading from the device that is not physically attached returns an error. Rescue the error and determine device is no longer attached.