fix SocketEception in Client