# File lib/rspec/core/hooks.rb, line 40
        def run(example)
          example.instance_exec(example, &block)
        rescue Exception => e
          # TODO: come up with a better solution for this.
          RSpec.configuration.reporter.message "\nAn error occurred in an after(:all) hook.\n\#{e.class}: \#{e.message}\noccurred at \#{e.backtrace.first}\n\n"
        end