if (engines!=null){ // it will be null unless remoteStop = true
System.out.println("Exitting remote servers");
Iterator it = engines.iterator();
while(it.hasNext()){
JMeterEngine e = (JMeterEngine) it.next();
e.exit();
}
}
try {
Thread.sleep(5000); // Allow listeners to close files
} catch (InterruptedException ignored) {