UPnP connection disappears after screen lock until Kodi restarted

I’ve noticed that the UPnP server connection disappear after the device has been asleep for a time. The only way to re-establish a connection is to kill Kodi (swipe to close on Task Manager) and re-open it.

iOS 10.2.1
iPad Pro 9.7 Inch
Kodi 17 for iOS

Steps to Reproduce

1) Open UPnP connection and look at the library. Log at this stage: http://paste.ubuntu.com/23954987
2) Close/Lock the screen, wait a while usually more than 10-15 minutes
3) Re-open device and try to select a piece of media from the Library
(locked screen at 17:37 – unlocked iPad at 18:03)
4) Error dialog appears “Couldn’t connect to network server” http://paste.ubuntu.com/23955302/
5) Kill Kodi (swipe to close) and restart Kodi and look at the library (this time it works) http://paste.ubuntu.com/23955383/