WL-2928 Log failed imports to log4j.

This way they show up in sentry and the logs as well as on the filesystem.