break loop if mplayer is closed