Do not fail with NameError if SandboxViolation is raised