class Net::SSH::Transport::Session

def close

Cleans up (see PacketStream#cleanup) and closes the underlying socket.
def close
  socket.cleanup
  socket.close
end