wrong usage of "socket.destroy"