Move your mouse pointer to the top-left corner of the screen to trigger the exit. Alternatively, you can wait for the simulated email process to finish on its own -- the program will display an About Box when the prank sequence completes, and closing that box exits the program.