def shutdown(self):
        """shutdown()
        Close I/O established in "open"."""

        try:
            self.sock.shutdown(socket.SHUT_RDWR)
        except __HOLE__ as e:
            # The server might already have closed the connection
            if e.errno != errno.ENOTCONN:
                raise
        finally:
            self.sock.close()
dataset/ETHPy150Open OfflineIMAP/imapfw/imapfw/imap/imaplib3/imaplib2.py/IMAP4.shutdown