Stop reasons
stop_reason in the result is one of: stopped (recdr stop), duration_reached (--duration), cap_reached (--max-duration), size_cap_reached (--max-size), command_exited (the wrapped command ended; command_exit_code holds its code), window_closed (the recorded window closed) and tab_closed (the recorded tab closed or the browser went away).