Add condition to stage_fork fail statement