V2 pushed:
* fixed args passing to thread * removed the detection of closed connection. This is not mandatory for this fix. Note that this still provides nasty behavior (eg. kill -9 <gdb> leaves winedbg in looping state), but this is not what this patch is intended to fix.