Add an option to continue playback when closed