Handle download errors, normalize output.