How to catch if another instance of the program is running?