fix issue with saving recording file while start playing new url, stop recording when receiving unexpected error