Fix problem when disconnect client