handle the playback stop properly