Do not ignore file upload errors

Previously, some errors during file upload was traced and ignored,
moving on to process the next file. This commit change that behavior and
now abort on any exception thrown.

This is needed since the design of keeping a single value for the latest
synchronization time in an index file depends on the fact that there
cannot be gaps in the uploaded data.