le` type will register their close callbacks here. :param f: the function to execute on teardown. )