test shutdown with jobs on queue