Prevent connection retrying happening repeatedly.
Detect errors and incomplete streams by looking at ffmpeg output.
Merge branch 'error_handling'