The TRunOnce component allows a program to determine if a previous  instance of the program is already running and to possibly quit if a previous instance is determined to be running.