It might be good to add this cleaning to the other runJob functions too for consistency