<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def aborted(self, exc_info):
 """ Called by a logger to log an exception. """

        self.exc_info = exc_info
        self.did_end = True
        self.write(format_exception(*self.exc_info))