def _disconnect(self):
        """
        Disconnect from the perforce server, and also shut down the stunnel
        proxy (if it exists).
        """
        try:
            if self.p4.connected():
                self.p4.disconnect()
        except __HOLE__:
            pass

        if self.proxy:
            try:
                self.proxy.shutdown()
            except:
                pass
            self.proxy = None
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/scmtools/perforce.py/PerforceClient._disconnect