The rules for Escaping the Dungeon ensure that a game session doesn't end with an adventuring party still in the middle of a dungeon.

Main/

Adventuring