while (itr.hasNext()) {
String key = itr.next();
try {
SlaveRMIInterface loadgen = (SlaveRMIInterface) rmiClients.get(key).lookup(SlaveClient.REGISTRY_NAME);
loadgen.shutdown();
} catch (NotBoundException e) {
LOG.error("Could not run test with " + key + " because slave was not bound");
}catch (RemoteException e) {
LOG.error("Could not run test with " + key + " because slave is not running");
}