Using blocking in.read() to detect when remote peer is disconnected