case "disconnect":
// Delete direct route for the VPN gateway
echo("Deleting Direct Route for VPN Gateway");
exec("route delete " + env("VPNGATEWAY") + " mask 255.255.255.255");
exec("netsh interface ip set dns " + env("TUNIDX") + " source=static 8.8.8.8")
exec("netsh interface ip delete dns " + env("TUNIDX") + " 8.8.8.8")
https://github.com/openconnect/openconnect-gui/issues/180
Use above code for use with Openconnect 1.5.3