Client connection thread.