def add_teardown_callback(self, callback, *callback_args, **callback_kwargs):
        self._teardown_callback_stack.put((callback, callback_args, callback_kwargs))
Add a callback to be executed in the event of application teardown.
dataset/ETHPy150Open box/ClusterRunner/app/util/unhandled_exception_handler.py/UnhandledExceptionHandler.add_teardown_callback