Adding try/catch for ImportError if dependencies are missing.