small improvements in Client.cpp

The server is now able to reuse a socket