Internet Direct (Indy) Version 9.0.2 Beta
TClientData.SelfDisconnected
indicates the connection has been closed by the client.

SelfDisconnected: Boolean;
Description
SelfDisconnected is a Boolean member that indicates the connection to the tunnel server has been closed at the client's request.