serve(): Close the client socket before closing the server socket