Fix teardown.