Set an non-zero exit code when an exception happend

When using Ho_Import in scripting environments, it's crucial to know if the export went through or exited prematurely