GameLoop()

After tinkering with PocketFrog a little, I have noticed that oddly enough, even after execution of GameLoop() SHOULD end, i.e. the last instruction has been executed, GameLoop() starts right back from the beginning again. After closely examining the examples, I am wondering how I end execution of GameLoop() after one iteration. Using a semaphore has not worked, nor have other convential methods of loop control. It does not seem logical to have the program start over again at the beginning of GameLoop() once the program should have already ended.