SEATTLE -- Seattle Mariners pitcher Felix Hernandez suffered his first loss since April 21, and he did it in heartbreaking fashion Friday night by way of a 1-0 loss to the Texas Rangers.

Hernandez had a shutout going into the ninth inning but was pulled after allowing a single and a walk with one out. With runners on first and third and Mariners closer Fernando Rodney on the mound, Rangers third baseman Adrian Beltre grounded into a potential inning-ending double play -- but second baseman Robinson Cano's relay throw was off the mark, allowing Elvis Andrus to score with the game-winning run from third base.

Hernandez (8-2) was charged with the run, the only one he allowed over 8 1/3 innings while giving up just four hits.

The Rangers' Shawn Tolleson (2-1) earned the win after pitching a scoreless eighth inning after Texas starter Nick Tepesch matched Hernadez for six innings. Tepesch gave up a pair of seventh-inning walks to end his night. He threw 6 1/3 innings of two-hit shutout ball but did not factor into the decision.

Texas reliever Jason Frasor took over for Tepesch in the seventh and struck out two consecutive batters to get out of that jam before Tolleson took over in the eighth.

Texas closer Joakim Soria retired the side in the ninth, getting Mariners star Robinson Cano to hit a dribbler back to the mound for the final out while earning his 14th save of the season.

Seattle (34-33) has now lost four games in a row. The Rangers (33-34) have allowed just one run over their past two games.

Hernandez had won five decisions in a row before getting a no-decision his last time out. He now has a career record of 12-21 against the Rangers.

Hernandez, who has historically had trouble with the Rangers over the years, got off to a great start. Texas didn't move a baserunner past first base through the first five.

Tepesch was just as dominant. The only hit he allowed through five innings came on Mike Zunino's leadoff single in the third inning. Texas caught Seattle shortstop Brad Miller trying to steal two batters later, meaning Tepesch faced the minimum 15 batters through five innings.

The only real drama over the early innings came on a pair of inning-ending at-bats from Beltre in the first and fourth innings. Beltre grounded out on both occasions and drew a glare and some words from Hernandez as the Seattle pitcher walked off the mound. Beltre and Hernandez have had a long friendship dating back to their days as Mariners teammates.

NOTES: Rangers 1B Mitch Moreland (ankle) got a second opinion from a doctor in North Carolina this week, but his timetable for returning is still up in the air. MLB.com reported that Moreland is suffering from Os Trigonum Sydrome, a condition in which a bone causes irritation in the ankle. Moreland can elect to have surgery to remove the bone, sidelining him for three to four weeks, or he could have season-ending reconstructive surgery. ... Texas RHP Yu Darvish is listed as the Rangers' probable starter for Tuesday, despite the Thursday off day. Darvish, who pitched Wednesday, will now get an extra day of rest as he maintains his usual spot in the rotation. ... Mariners DH Corey Hart (hamstring) took batting practice before Friday's game and could begin running Saturday. Manager Lloyd McClendon said Friday that Hart could be close to a rehab stint.