def connectionLost(self, reason):

        if reactor.running:
            self._reopen_file()
        else:
            self._close_file()
Gracefully try to reopen the connection.
dataset/ETHPy150Open marineam/nagcat/python/nagcat/nagios_api.py/NagiosWriter.connectionLost