'Allow profiling of a run and store exceptions.'

def run(self):

    global exitedThreads
    try:
        Thread.run(self)
    except Exception as e:
        tb = traceback.format_exc()
        self.set_exit_exception(e, tb)
    exitedThreads.put(self, True)
