Switch to socket.end()