error handling on aborted file uploads appirio-tech/lc1-project#467

I am able to replicate the issue by closing the window and observing the crash.   This fix appears to prevent the crash.