Kris Meeke held a 40-second lead near the end of the rally.