Fix version
Correctly detect when remote peer close the socket