So many strange assumtions, but the most striking is that you're presuming the user doesn't know what they want to happen.
"you'd prefer to seamlessly be switched back to the main app to do the thing you launched it for"
Would I? How do you know? Why do yo think so? This is such an odd thing to be sure about.
My real presumption is that the user knows exactly what they want to happen, but can't encode that knowledge into OS configuration because people have no imagination for trivial use cases, so demand blanket bans. While another group is just as limited and encoded blanket allows
> Would I?
You would
> How do you know?
By being the omniscient being that came up with the conditions in the first place