Improved error handling and reporting during imports