Auston Matthews broke a scoreless tie in the third period, Kasperi Kapanen added another goal, and the Toronto Maple Leafs hung on the beat the Boston Bruins, 2-1, on Friday to take a 3-2 lead in their first-round Eastern Conference series.

With the goalie pulled for an extra skater, David Krejci got the Bruins on the board with 43.7 seconds left, but Boston could not tie it up.

The Maple Leafs can close out the series when it shifts back to Toronto for Game 6 on Sunday.

Frederik Andersen had 28 saves for the Maple Leafs, and Tuukka Rask finished with 25 for Boston, which failed to convert on its three power plays.

The Maple Leafs’ goals broke up what had been a defense-dominated game.

Matthews’s fourth goal of the postseason came after he took a feed from Jake Muzzin and found an open corner of the net on a slap shot with 8 minutes 27 seconds left. The Bruins challenged the goal, arguing that Rask was interfered with, but the goal was upheld after a review.