Wait for stdout and stderr copying to complete after validating process exit so deferred process deletion does not cancel readers with output still in flight. Signed-off-by: Chris Ayoub <cayoub@openai.com>