Application termination during connect - 10038

I am starting a thread executing
        IdTCPClient.Connect;

If I don't have a physical connection to the target,
connect waits - as expected.

What can I do in order to shut down the application
while a thread is waiting in connect ?
I get an error 10038 on my *client* side in the IDE,
and win98 crashes when executed without IDE.

Any ideas ?

Hans

ARRI Cine + Video Ger?te
Mariahilfer Stra?e 136, A-1150 Wien
Tel. +43 - 1 - 892 0107 - 61
jhochrei...@arri.at