fix client side closeConn issue