fix bugs when disconnect is called in client __ping thread