Upnp fixes

Should fix random crashes on upnp on exit and timeouts when accessing remote players.