Handle client connection