It's part of the main quest, if you didn't already know.
Speak to Betty, a little girl in the playground. If you want bad karma or simply don't care, play all her 'games' and she'll let you go.
Alternatively, you can hack the failsafe and shut the whole thing down for Good karma. I can't remember the exact order you have to select each item, but you'll get it eventually.
Either way, you are free to leave and James will speak to you afterwards.