I tried setting up WireSock so that on startup it will be hidden in tray and autoconnect. And on closing the application it will disconnect the VPN.
Using AutoHotKey to start the application and autoconnect works great. But closing it will not work. Either I cannot close the application or I manage to close it but the VPN is still connected in the background.
Is there a way to do this without interacting with the application manually in the taskbar?