Don't close the socket twice.