Better error catching when something fails with the import