If you die in a spell dungeon after finding the target, the dungeon disappears and you can't go back to finish clearing it out. After it happened the first time, I died again to see if it would duplicate (and it did), but I haven't checked to see if it happens with other types of dungeons.