cleanup waitForJobs