What do you mean by "look at the example Zsnes V2" . Where? Is this in the emulator or on the website. Not sure what you mean? If the emulator process is being killed, how does the emulator know to save on exit? Not sure if that would work, but wouldn't mind seeing it in action. Usually if you kill a process from another application it will not do things like save on exit because it is a unexpected exit.