Fix issue where we didn't actually wait for jobs to finish.