Record on the fly so when the process is killed we still have a video