Simply replace engine.getClass().getSimpleName() with say, a simple variable like engine_long_name, which is
def engine_long_name = engine.getClass.getName()
if getName method exists in the class. Maybe use try catch or ?.
Low priority but it would be nice to print the progress without duplicates.