# File lib/rack/body_proxy.rb, line 11
    def close
      raise IOError, "closed stream" if @closed
      begin
        @body.close if @body.respond_to? :close
      ensure
        @block.call
        @closed = true
      end
    end