cleanup and comments in MachineManagedJob