Enterprise VPN stuck disconnecting

Hi,


We have an iOS app that configures both a Personal VPN using NEVPNManager and an Enterprise VPN using a configuration profile. These have their OnDemand settings set such that the Personal VPN connects on cellular and the Enterprise VPN connects on Wi-Fi. This is so our backend service can apply different policies depending on the bearer type.


The problem we have encountered with several of our testers is that the Enterprise VPN will occasionally get stuck when disconnecting. For example they leave the Wi-Fi zone, the VPN attempts to disconnect but gets stuck. As a result the Personal VPN on Cellular never activates and even worse, the cellular connection itself seems broken, ie. browsing websites etc fails. The only solution at this point is to re-boot the device.



Any ideas what could be causing the VPN to get stuck?


Thanks

Alan