socket.destroy instead of socket.end