Are you resetting the timer when you start your event? I'm guessing the problem is that 2 seconds have already passed on the timer when your event starts, thus ending the application immediately....