def _shutdown_socket(self, s):
        try:
            s.shutdown(socket.SHUT_RDWR)
            s.close()
        except Exception as e:
            self.logger.error('_shutdown_socket(): failed to cleanly shutdown socket: %s' % str(e))
dataset/ETHPy150Open bcoe/secure-smtpd/secure_smtpd/smtp_server.py/SMTPServer._shutdown_socket/original