wait for jobs to finish before shutting down
hopefully force GC of scheduler object