Fix thread leak in ZooKeeperGroups.