code: def die(self):
          
          log.info('Time to die')
          if self.connected:
              try:
                  self.send('Die')
              except Exception:
                  pass
          if self._socket:
              self._socket.close()
          self.pop()
docs: Time to quit