Cristiano Ronaldo was in tears after being substituted to a standing ovation with few minutes remaining.