close socket and change server socket left