record: break out of encode_run on cleanup
record: break out of encode_run on cleanup

On cleanup (eg. when stopped by a signal) stop the encode, and don't
exit the program with error in that case.

kfish/libshcodecs,kfish/libshcodecs