class RSpec::Core::Formatters::BaseFormatter

def close

This method is invoked at the very end. Allows the formatter to clean up, like closing open streams.
def close
  restore_sync_output
end