Ok Ok , so the program still insn't shutting down, i am just guessing, but i think i had a similar problem. i discovered that when you copy the folder where you are making the game to another place, and then you copy it back to ags folder whit the same name, a couple of problems come out. This is a litle complicated to splain, so if you understand what i am trying to say, you should change the folder name and look inside for others irregular stuffs.
Again, i am just guessing
Shouldn't this be a reply? Or am I just not understanding...