class Seahorse::Client::H2::Connection

def close!

def close!
  @mutex.synchronize {
    self.debug_output("closing connection ...")
    if @socket
      @socket.close
      @socket = nil
    end
    if @socket_thread
      Thread.kill(@socket_thread)
      @socket_thread = nil
    end
    @status = :closed
  }
end