readFrame() can return false i.e. a disconnection.
Replace an exception by a close().
Replace an exception by a close().