Falling in love should be an auto-exit, but he was trapped here. He created the shadows so he could become and NPC.
It is Yuri's love for her friends that has triggered the failsafe. But she is here in the core now, and can take control and become God if she wants to.
She doesn't want to.
She destroys all the computers, hopefully resetting the NPCs.
As she breaks down, weeping, she sees a vision of her younger siblings telling her she doesn't have to carry the weight all by herself.