def _close_file(self):
        """Close the named pipe if open"""

        if self._fd is not None:
            self.stopWriting()
            try:
                os.close(self._fd)
            except __HOLE__:
                pass
            self._fd = None
dataset/ETHPy150Open marineam/nagcat/python/nagcat/nagios_api.py/NagiosWriter._close_file