Sri Lanka spinner Rangana Herath was given a guard of honour by his team-mates as he walked onto the pitch in his final Test, in Galle.