Removed socket.destroy() and replaced them with a more friendly socket.end(). Still got a lot to learn.