Shutdown the socket is buffer is empty, the peer has closed the connection.