fixed: crash on exit when playing a file via upnp's "play with"

see ticket #14559.
I dunno if the change in the sequence can have other consequences. Therefore the pr.