def close(self, _catchall = True):
        if self._closed:
            return
        self._closed = True
        try:
            try:
                self._async_request(consts.HANDLE_CLOSE)
            except EOFError:
                pass
            except Exception:
                if not _catchall:
                    raise
        finally:
            self._cleanup(_anyway = True)
closes the connection, releasing all held resources
dataset/ETHPy150Open sccn/SNAP/src/rpyc/core/protocol.py/Connection.close