An acceleration tunnel can tear itself down on its own: a socket error, a relay
OPEN_ERR/CLOSE frame, or an open timeout runs closeSockets(), which closes both
UDP sockets and leaves every later sendFrame() a silent no-op.
TSClient kept the adapter bound to that tunnel's now-dead local port and only
rebuilt the transport when adapter or client were null. An auto-reconnect
therefore dialed a port nobody reads, and because a closed tunnel reports
nothing, the session could never recover and never surfaced an error either.
- expose isClosed() on AccelerationRelayClient so callers can distinguish a live
tunnel from one that tore itself down
- drop a stale tunnel together with its adapter and SDK client before connect()
decides whether to rebuild the transport, detaching first so a late
"disconnected" from the retired client cannot re-enter the reconnect path
- cover the reconnect guard with regression tests in ts-client.test.ts
Verified: tsc clean; ts-client.test.ts 35/35 pass (incl. the two new guards).