Catch any Exception, not just ScriptException.