Raw download logging and exception handling needs improvements
Reportedly the results of large uploads are inconsistent. Users get valid zip-files but with varying incomplete contents. If the files are incomplete, the manifest.json is also missing.
The assumption is that in the loop an exception is thrown and the overall download terminates in the finally clause with a proper close and hence valid zip file.
This exception handling has to report errors to users and logging alike. Finally, we need to find the underlying issues cause the exceptions.