Don't crash when requesting peername from disconnected socket.