Added delay before retrying connection check.