removed double shutdown