self._shutdown is registered as a handler for signal TERM, since that is what start_workers.py does to us when it shuts down.