Fixed disconnected sockets not being removed from groups