Unify error handling for downloads and checksums