ST. PETERSBURG — The most important part of the Rays' 5-4 win Thursday over the Twins was the way it ended.Because after they came back when Drew Smyly couldn't hold an early lead, and after they got a break from their home-dome advantage, after they took advantage of a couple of scoring opportunities and a Minnesota mistake, and after they got solid middle relief work, they had three outs to go and Brad Boxberger on the mound to get them.As well as Boxberger had pitched earlier in the season, he had been struggling of late, blowing two games last week in Houston and battling through 33 pitches to get his last save on Friday, and the team seemed to ebb with him.But Thursday, Boxberger made it as easy as 1-2-3, striking out the three Twins he faced on 14 pitches to secure the Rays' much-needed, if not must-needed, win."It's good to get back on top of my game," Boxberger said. "To have a clean inning for once is definitely a positive for me."After a pair of losses that dropped them to the bottom of the pack of teams competing for a wild-card spot, the Rays improved to 63-64 and 2½ games behind the Rangers, as they welcome the AL-leading Royals for a challenging weekend series."Given the way the last two nights have gone, this was a big win," manager Kevin Cash said.The Rays took a 2-0 lead in the first, in part on Logan Forsythe's team lead-matching 15th homer, but Smyly, having trouble with his breaking ball and overall command, allowed the Twins to score in three straight innings and take a 4-2 lead.It could have been worse, but in the third, a prodigious blast by Miguel Sano, that looked to be a 420-plus foot two-run homer, struck the B-ring catwalk, bouncing back onto the field for a double, with only one run scoring."Thankful for the B-ring coming up clutch for us," centerfielder Kevin Kiermaier said.The Rays got a run in the fifth, when Tim Beckham, who doubled, scored on J.P. Arencibia's sac fly, then two in the sixth, with Joey Butler, just back up from Durham.After Forsythe led off with a double, Butler delivered a one-out RBI single to left-center, moved to second on the throw and third on a ground out. Having played previously with Twins reliever Neal Cotts, Butler said he was alert to the possibility of a ball getting away, and scored the decisive run on a 2-and-2 pitch that got past catcher Kurt Suzuki."I know that his ball moves a lot and catchers tend to have trouble so I was kind of anticipating a ball in the dirt and I got one," Butler said.Brandon Gomes relieved Smyly and got them through the sixth (and got the win), and new weapon Alex Colome worked a dazzling seventh and eighth.That brought Boxberger to the mound, and a few minutes later he was shaking hands after notching his 31st save, tying for the AL lead."That was nice," Kiermaier said. "He never was hanging his head or anything after the last week or so, and for him to come out and just do Boxberger things, striking out the side, was awesome to see again. Hopefully this really gets him going and back to his normal way of shutting guys down."