significantly improve ONIX import error handling