Handle client connection errors better