$exit_code is only set in the 'status' case above.