Improved error handling and display during import (#252, #718, #583, #501, #544)