Playback was not stopped properly in case of the last file of the queue was invalid.