Oh, yeah, I'm using the UMSWE 3.8, that trigger is an add-on that comes with it. Without the UMSWE, I don't think there's any way to avoid using Periodic Events.
I think when you leave the game in the middle, it counts it as a defeat, no? At least, it shows the graphic it shows for a defeat on the scores screen...