Remove the socket instance from the namespace and the attached socket's listeners when the socket is disconnected from a namespace