stop container before removing