Adjusting tear down script.