finish client to server communication