def __del__(self):
    if self.connected:
      logging.debug('Garbage collection disconnecting %r' % self.host)
      self.Disconnect()
Special delete method called on object garbage collection.
dataset/ETHPy150Open google/capirca/tools/ldpush/base_device.py/BaseDevice.__del__