Handle client socket timeout with logging.