Stop encoding process and thread when there is deadly overrun
Use exit code 8 for normal exit