BOSTON -- The Red Sox walked off into the offseason Sunday when Rafael Devers chopped a single off the glove of Orioles shortstop Richie Martin, and Mookie Betts roared all the way home from first for a thrilling end to a 5-4 win at Fenway Park. The day started with

BOSTON -- The Red Sox walked off into the offseason Sunday when Rafael Devers chopped a single off the glove of Orioles shortstop Richie Martin, and Mookie Betts roared all the way home from first for a thrilling end to a 5-4 win at Fenway Park.

The day started with all eyes on Eduardo Rodriguez , who was aiming for his 20th win.

But that quest ended when Xander Bogaerts made an error and Matt Barnes allowed an unearned run to tie the game in the top of the eighth.

• Box score

Even without Rodriguez’s milestone win, the final two innings were filled with excitement.

Stevie Wilkerson made what might have been Major League Baseball’s best catch of the year in the bottom of the eighth to take a homer away from Jackie Bradley Jr. . Usually, Bradley is the one who does the robbing.

“It was all a matter of time until my debts had to be paid. That was a great catch,” said Bradley. “Great catch, Stevie Wilkerson. I definitely hope you win play of the year so I can always be a part of it. It’s the first one I’ve ever been robbed [on]. I’m usual the smooth criminal.”

At least the play by Wilkerson set the stage for Betts to literally sprint into the offseason in what wound up the fourth time since 1908 -- and first time since 2008 -- that the Sox have walked off in the final game of the regular season. It was the 135th run of the season for Betts, the most any Red Sox player has scored since Ted Williams crossed the plate 150 times in 1949.

After Betts led off the ninth with a walk, the soft, bouncy grounder by Devers was no sure thing to get through the shifted infield. But as it clanged off the glove of Martin, Betts hustled to third. Not that the play ended there. When Betts saw Wilkerson hesitate to throw the ball back in, Betts galloped home to set off a spontaneous swarm of a celebration at home plate.

“I think there was a mix of [excitement] winning the game and not playing extras,” said Betts. “It was just kind of instinct for me. [Third base coach Carlos] Febles right there told me to look at the ball, pick up the ball. And I think everybody was kind of ready to go, so [we’re] just excited to go home.”

It was a far cry from a year ago at this time when everyone on the Red Sox was excited to see what a 108-win team could do in the playoffs. The answer wound up being a World Series championship.

The bid to repeat never caught much momentum, and Boston finished 84-78.

At least there were some individual performances to remember, and those were on display on Sunday.

E-Rod misses 20, but gets 200

Sure, there was some disappointment for Rodriguez. The Red Sox were all-in on trying to get him 20 wins.

The truth is that the lefty achieved a milestone that was more meaningful to him, pitching 200 innings for the first time in his five-year career.

In fact, Rodriguez finished at 203 1/3 after throwing seven strong frames against the Orioles. The lefty gave up four hits and three runs, walking two and striking out eight.

For the previous three seasons, Rodriguez had been unable to make it through healthy. Then came this year, when the 26-year-old answered the bell for 34 starts and finished with 213 strikeouts.

“I’m just happy I could make it through a whole season, was healthy the whole time, was able to go out there every five days and make 34 starts. That’s something that I wanted to accomplish, and I had the opportunity to do it this year and I did it,” Rodriguez said.

Devers also gets 200 -- and 90

When Devers rifled a double to right in the seventh, it was his 200th hit of the season. The walk-off gave him 201.

Devers is the 17th player since 1900 with 200-plus hits in a season before turning 23 years old. The most recent? Starlin Castro for the Cubs in 2011 and Alex Rodriguez for the ’96 Mariners.

There is much for the gifted third baseman to build on. He led the Majors with 359 total bases and 90 extra-base hits.

Devers joined Joe DiMaggio (1937) and Rodriguez (‘96) as the only players in history to have 90 extra-base hits or more before turning 23.

“He was one of the best third basemen in the big leagues, not only offensively but defensively. He turned the corner,” said Red Sox manager Alex Cora.