CHICAGO — Chris Archer prides himself on his durability. That's why he didn't back out of his last start of the season, despite the prospect of becoming the majors' first 20-game loser since 2003.

The result was a confidence-boosting performance that got him to his goal of 200 innings.

Archer overcame a shaky seventh inning to avoid the dubious 20-loss milestone and lead the Tampa Bay Rays past the Chicago White Sox, 5-3 on Thursday night.

Archer (9-19) allowed three runs and six hits in 6 2/3 innings to help the Rays snap a six-game skid and leave Detroit's Mike Maroth as the only pitcher to lose 20 games this century.

"More than anything else, I'm trying to make every start and I'm trying to pitch 200 innings. That's my No. 1 priority," Archer said. "The first half of the season was up and down, so to accomplish that feat was really nice for me, personally."

Mikie Mahtook hit a solo homer in the fourth off Jose Quintana (13-12) and doubled and scored in a three-run seventh off Chicago's shaky bullpen.

Quintana allowed two runs and five hits over six innings for the White Sox, whose five-game winning streak ended despite Carlos Sanchez's two-out, two-run homer in the seventh.

Chicago clinched its fourth consecutive losing season under manager Robin Ventura, whose future with the team is uncertain. And Quintana has been mentioned as a candidate to be traded if the White Sox decide to rebuild.

"I don't have control about that," Quintana said. "I want to be here for a long time."

Archer got the first two outs of the seventh, but a walk, Sanchez's homer and Leury Garcia's double ended his night. With rain starting to fall, Brad Boxberger got Adam Eaton to ground out with the tying run on.

Erasmo Ramirez worked the eighth amid a steady rain before the umpires called for the tarp. After a 35-minute delay, Alex Colome got the final three outs for his 36th save.

Eaton's groundout to lead off the sixth put Archer over 200 innings for the second consecutive season. But it's been nothing like 2015, when Archer was an All-Star and fifth in the Cy Young Award voting.

While Archer has pitched better in the second half, he's gotten little support. Tampa Bay scored two or fewer runs in 15 of his 19 losses, leaving him one loss shy of being the second pitcher in 36 years to lose 20.

"Honestly, I never let those types of things creep into my mind. It's pointless to think about negatives," Archer said. "I'm just glad I don't have to answer the question."

Archer's five strikeouts gave him 233, second in the AL behind Detroit's Justin Verlander. He finished with eight consecutive quality starts and a 4.02 ERA.

Alexei Ramirez's RBI single against his former team in the second ended Tampa Bay's 41-inning streak of not holding a lead.

Ramirez also singled and scored in the seventh as the Rays got to relievers Juan Minaya and Dan Jennings to build a 5-1 lead and hold on for their 66th win.

"I learned a lot about myself and I think that's the biggest thing," Archer said. "You take this season and you grow from it. I think all of us starters are going to be poised for much more success next year."

TRAINER'S ROOM

Rays: In his second game back from a bruised hand, CF Kevin Kiermaier went 3 for 5 and made a running catch of Sanchez's drive with a runner on to end the game.

White Sox: 2B Tyler Saladino (back) won't play again this season. "We've got to figure out a way to get him right before he heads home," Ventura said.

20-LOSS CLUB

Maroth went 9-21 for the 2003 Tigers, who finished 43-119. Before that, Oakland's Brian Kingman in 1980 was the last to lose 20.

SUNDAY SALE

Ventura had hinted that ace Chris Sale's season was over after Tuesday's victory. That changed when the left-hander asked to start Sunday's season finale against Minnesota.

"I think that's a good testament to finishing out the year and doing it right," Ventura said.

UP NEXT

Rays: Three games at NL West champion Texas to close the season. RHP Matt Andriese (8-7, 4.34 ERA) faces Rangers RHP Yu Darvish (6-5, 3.53) on Friday night.

White Sox: LHP Carlos Rodon (8-10, 4.08) starts Friday night against last-place Minnesota and RHP Tyler Duffey (9-11, 6.18).