Let the media player finish.
I had inverted the sort...
When relaunching, make sure intent data is passed through.
Added restore script.