SshSessionImpl.disconnect

void disconnect(ushort reason, string description)

Disconnects: sends nothing until the packet layer exists, then flushes pending writes and closes the transport.