well looking at it logically they're inside the life of the Doctor, ending up in a sort of sealed off area, 11thy and Clara seemingly have no way out but if they're inside the Doctor's timeline then so is the TARDIS, so they just find her and escape before sending her back again, it's very spacey wacey 😉