Do not hang when the window size is the same as the message size
[REM3-193] At RemoteReadListener.handleEvent, do not return after receiving a CONNECTION_CLOSE, instead, try to receive a message one more time to make sure we are not skipping any receive equal to -1