The AfterRun method is a procedure used by
TIdThread, and descendants, to provide control over the sequence of events in the Execute method. AfterRun overrides the AfterRun method from
TIdThread to provide the following functionality:
- Triggers the DoDisconnect event for the server connection.
- Calls the ReleaseThread method in the thread manager.
- Remove the class instance from the thread list.