added needed import for added exception, and cleaned up a log message