Always hide the progress bar when a file upload is complete, rather than only when it succeeds.
Updated parser and import code to gracefully handle failures.
Added code to reset the database.
Report any import failures to the client so we can eventually display information about them.