Updated the video encoding to terminate x264 if it is running out of control