def close_conn(self):
        if getattr(self, '_conn', None) is not None:
            if self._conn.get_transport() is not None:
                self._conn.close()
dataset/ETHPy150Open ployground/ploy/ploy/common.py/BaseInstance.close_conn/original