Fixed teardown script.