(parse_long_options): Check for write error to stdout before exiting.