Actually, if you don't escape the pyramid at the very end of the adventure, it does trap you forever.
I found the gates of agony encounter extremely badly written. The layout doesn't match the picture at all. I kept wondering if north and south had been reversed on the map or directions.