Fix for crash report if network down when upload starts

Let the existing error handling detect the IOExceptions from
the filename uniqueness check... this lets us fail gracefully.
Merge pull request #31 from brion/upload-fail-fix

Fix for crash report if network down when upload starts