Capture the last run result and use it in case of a restart