If that other program really needs the VPN, presumably it will stop with an error the first time it wants to use it. As long as it doesn't use it, it won't stop.
I don't think you can influence that behaviour.

Kees