twitter/iago — pull request #34 by madster26 (2014-08-19 00:31:32+00:00)
Title: Fix bug in ParrotCluster shutdown

When the ParrotFeeder starts the shutdown process because it has satisfied the config requirements, it calls cluster.shutdown(), which clears the list of remoteParrots.
ParrotPoller which keeps monitoring the ParrotServer queues now loses track & never updates the local queue state, this results in the servers being considered as permanently busy (isBusy = qDepth > targetDepth)

This fix is intended to move the clearing of remoteParrots after the servers have actually shutdown & not prematurely.