fixed libvpn error handling