def shutdown(self):
        newJobsQueue = self.newJobsQueue
        self.newJobsQueue = None

        newJobsQueue.put(None)
        self.worker.join()
Signals worker to shutdown (via sentinel) then cleanly joins the thread
dataset/ETHPy150Open BD2KGenomics/toil/src/toil/batchSystems/slurm.py/SlurmBatchSystem.shutdown