fix appending and cleaup logic when slave list changes over time.
fix appending and cleaup logic when slave list changes over time.

GoogleCloudPlatform/gce-oreilly,GoogleCloudPlatform/gce-oreilly,GoogleCloudPlatform/gce-oreilly,GoogleCloudPlatform/gce-oreilly