Teardown exists no longer, use the on_exit function.