I have Galaxy S23 running Android 13 and have found the following for application closed trigger:-
All applications selected and force legacy mechanism disabled - triggers on app launch. No trigger on app closed
All applications selected and force legacy mechanism enabled - no trigger on closing (or launching) an app.
Single app selected and force legacy mechanism disabled - no trigger on closing (or launching) the selected app.
Single app selected and force legacy mechanism enabled - triggers on closing the selected app.
If I was I using this trigger I would limit it to individual apps (not all) and enable the force legacy mechanism.
I see
@Quidn has decided to use individual apps but not the force legacy mechanism.
The need to use force legacy mechanism may depend on the version of Android and perhaps the make of phone.