Stop the network tunnel from the Packet Tunnel Provider.
- iOS 9.0+
- macOS 10.11+
- UIKit for Mac 13.0+Beta
NSErrorobject containing the error that caused the tunnel to be stopped. The domain and code of this NSError object is defined by the caller.
The Packet Tunnel Provider should call this method when an unrecoverable error occurs, such as the tunnel server going down or the VPN authentication session expiring.