<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def _run_exitfuncs():
 """run any registered exit functions _exithandlers is traversed in reverse order so functions are executed last in, first out. """


    while _exithandlers:
        func, targs, kargs =  _exithandlers.pop()
        func(*targs, **kargs)