Import now fails properly.
Improved error reporting for imports.