Changed "close" to "destroy" in the new Socket class.