def send_email(self, msg, tag=None):
        """
        Send an e-mail before completing the shutdown.
        Returns 0 if success.
        """
        try:
            return self._send_email(msg, tag)
        except:
            self.exceptions.append(straceback())
            return -2
def send_email ( self , msg , tag = None ) : try : return self . _send_email ( msg , tag ) except : self . exceptions . append ( straceback ( ) ) return - 2
Send an e-mail before completing the shutdown.
        Returns 0 if success.