Fix bug in Container.destroy()