Stop playing when reaches the end of file