def shutdown(self):
        if self._data_queue:
            log.info("Removing unsubmitted results")

            while self._data_queue:
                self._cleanup()
Remove any unused spool files
dataset/ETHPy150Open marineam/nagcat/python/nagcat/nagios_api.py/NagiosWriter.shutdown