Fixed broken thread join in WaitForMultipleObjects
Update thread now cleaned up during disconnect.
Fixed thread exit of threadpool.