<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 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