A non-PTY process outlives its SSH connection like OpenSSH, and the agent
counted its session until the process exited. Editors whose launcher keeps
running after the window closes, such as Cursor and VS Code's exec server,
stayed in the active connection counts while the connection log showed them
closed. End the count when the disconnect is reported instead.
Closes CLIENT-1115