Fixbug: client close