Made the socket not a static property.