If we get an error while scanning files, stop all scanning.

Let the app layer decide when to restart upload attempts.