Added try/except on third-party module imports.