Implemented logging for import errors.

As I should've done earlier ;-)