Client connection handling