open override fun close() Cancels pending setup and monitoring and releases listener/peer sockets. Idempotent and reusable: a later connect starts a new native socket. Queued transport bytes are discarded; close does not flush pending sends. The owning scope is never cancelled by this method.