set GOING_AWAY rec->state before we do the execve call

as we'll never return.
in the child pid, wait for the sub-child to set state before killing.