Adds dungeon clean-up before generate and

fixes Node destructor.