finish client server connection