class Object
  def catching_standard_errors(&block)
    begin
      yield
    rescue StandardError => e
      Events.trigger ['exception'], e
    end
  end
end

class Object
  def catching_standard_errors(&block)
    begin
      yield
    rescue StandardError => e
      Adhearsion::Events.trigger ['exception'], e
    end
  end
end

Make sure the exception handler is useable in 3rd party code (correct Events module)
Make sure the exception handler is useable in 3rd party code (correct Events module)