improve fetchArchive error handling