Option to delay playback after mode auto-switch

Fixes #3235
Clear osd messages in CloseMedia()