When everyone is ready to leave, Rashid walks back where the exit used to be, holds up the Sunsword and utters a sentence.
The Portal Disc reappers, and stepping through it transports the party out to the golem, from where they can walk the rest of the way out.
When asked how he knew how to do that, he merely smiles enigmatically and shrugs.