try {
int numHosts = selectedHosts.size();
openStreams = 2 * numPEs; // Each PE has stdout and stderr open
peGroup = new PEGroup(selectedHosts, "PE", numPEs, args);
// Wait untill all PEs have finished
synchronized (Client.this){
while (!stopped && openStreams > 0) {
try {