Don't close closed sockets.