When a GE expires any tags added or removed by the GE get undone. So the GE can add a stun tag to the character that triggers the Stun ability. When the GE expires it will remove the stun tag from the actor.
On the stun ability you can add a Trigger in the defaults panel that activates the ability when the owner has a specified tag present. IE the stun tag.