fix bug of android 2.2: adb does not kill remote ffmpeg process when disconnected

let ffmpeg exit if write output failed