def register(self, _cb, *args, **kwds):
        """Accepts arbitrary callbacks and arguments. Cannot suppress exceptions."""
        def _wrapper(exc_type, exc, tb):
            _cb(*args, **kwds)
        return self.register_exit(_wrapper)
Accepts arbitrary callbacks and arguments. Cannot suppress exceptions.
recipes/Python/577981_CleanupManager/recipe-577981.py