That's something else, I'd say. And much easier, if I were to guess. I'm sure there are dbus messages sent when a new connection is established. If you register to listen for them, you can (re)start the VPN connection when you want to.