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