i'm not sure if this will work, but you can try it anyway. When your program starts up, lookup the names of all processes running, if you see one that is already up, close the program.