add cout after client close
release resources after thread ended
we always get error 10060, though we use try catch, we want to throw it out in client thread