Sri Lanka failed to give him a winning farewell but the cricketer made sure that England earned the final wicket to seal the last game of his career. Kusal fell attempting one big stroke too many and swiping to Moeen, before catcher turned wicket taker, coaxing the ex-skipper into prodding ungracefully to Jos Buttler at midwicket.
Silva (30) was first to fall, three balls after drinks, when he stooped to sweep a drifting delivery from Jack Leach and was given lbw in front of middle stump.
Less than three overs later Karunaratne decided he would take the aerial route against Moeen, an ill-judged scheme that saw him club a firm return catch back at the off-spinner. Dhananjaya de Silva, for example, was out in the over before lunch on day four - an over that began just in the nick of time, but might not have done so had Sri Lanka's batsmen delayed during the previous over that Joe Root delivered specifically to speed up the match.
Chandimal, suffering from a groin injury that kept him off the pitch all of Thursday, was skittled by Leach for 11.
"I suppose all you can do is try to score runs when you get the opportunity", he told Sky Sports after just his second Test century, following a debut ton against India in 2016.
Sri Lankan captain Dinesh Chandimal said that England was "outstanding" in their effort, and called his team's batting "below par" in the match. They have had tremendous support here, with 5,000 England fans in Galle, and they did a lap of honour after their victory which was nice.
Jos Buttler made 35 and England's first-innings hero Ben Foakes contributed 37 before Root chose to give his bowler a go at the Sri Lankan openers in fading light.
Sri Lanka's Angelo Mathews celebrates scoring a half century during the fourth day of the first test cricket match between Sri Lanka and England in Galle, Sri Lanka, Friday, Nov. 9, 2018.
For Sri Lanka, it left them with plenty of questions, about how they'll replace Herath, why their batsmen couldn't kick on from starts, and why England adapted better to conditions than they did. 'We can go to Kandy with huge amounts of confidence and look to still improve and get better'.
We wondered about them playing against Sri Lanka's spinners, we wondered about the pitch - whether it would be as hard as it usually is here - and we also had concerns about the weather.
Thisara Perera and Rangana Herath, who was playing his final global fixture, took two wickets each.