Wait for all jobs to finish after testing, to prevent errors about running jobs at shutdown.