fix(archive): improved error handling.