Changed exception handling to only catch StandardError so that breaking from an import is possible.