producing_client: Correctly report statistics and handle errors.