Add error checking of import process, including a more informative message and better logging of error