Fixed client socket shutdown.