def clientConnectionLost(self, connector, reason):
        self.log.error("Connection lost. Reason: %s", str(reason))

        if self.config.reconnectOnConnectionLoss and self.connectionRetry:
            self.log.info("Reconnecting after %d seconds ...",
                          self.config.reconnectOnConnectionLossDelay)
            self.reconnectTimer = reactor.callLater(
                self.config.reconnectOnConnectionLossDelay, self.reConnect, connector)
        else:
            self.exitDeferred.callback(None)
            self.log.info("Exiting.")
Generate the pid file name to hold the terminal process id.
dataset/ETHPy150Open jookies/jasmin/jasmin/protocols/smpp/factory.py/SMPPClientFactory.clientConnectionLost--crossover with--dataset/ETHPy150Open openstack/ironic/ironic/drivers/modules/console_utils.py/_get_console_pid_file