# File lib/em-http/client.rb, line 365
    def unbind
      if @state == :finished || (@state == :body && @bytes_remaining.nil?)
        succeed(self)
      else
        fail(self)
      end
      close_connection
    end