Record start, end, and "return code" for builtin commands