Set non-zero exit codes when exceptions happened

Set non-zero exit codes, allowing scripts to determine if the import went well