SAN FRANCISCO -- Rookie shortstop Pete Kozma moved to his right, only to watch the line drive off Hunter Pence's broken bat inexplicably change directions when the shattered barrel hit the ball a second and then third time.

Three runs scored on a strange double that just about summed up the final three games of the NL championship series when almost everything went wrong for St. Louis, costing the defending champion Cardinals a return trip to the World Series.

Kyle Lohse failed to make it out of the third inning, the Cardinals' bats fell into a cold spell at the worst possible time and St. Louis was eliminated from the postseason with a 9-0 loss to the San Francisco Giants in Game 7 on Monday night.

"Not a lot went right for us the last three games," second baseman Daniel Descalso said. "It's tough to win when you score once in three ballgames. They just outplayed us all three games."

After breaking out to a 3-1 series lead, the Cardinals were outscored 20-1 the rest of the series in a collapse reminiscent of the one this franchise endured in the 1996 NLCS when Atlanta outscored St. Louis 32-1 in the final three games.

The Cardinals batted .190 with 27 strikeouts in the three losses. They also made four errors, were 1 for 21 with runners in scoring position and allowed Giants pitchers to drive in three runs – or two more than their entire lineup produced – to become the 12th team to blow a 3-1 lead in a best-of-seven series.

"We didn't play as well as we wanted to the last three games," Lohse said. "We put ourselves in a great position but just couldn't close it out. Tip your hats to those guys over there. They don't give in. It's tough. It was a tough series, tough to swallow."

The latest loss ended a record-tying streak of six straight St. Louis victories in winner-take-all games. That included four wins in the past two seasons, including Game 7 of the 2011 World Series against Texas and the comeback from 6-0 down in Game 5 of the division series against Washington.

It also denied Carlos Beltran his first trip to the World Series. Beltran, one of baseball's greatest postseason performers with 14 career playoff homers, fell agonizingly short once again, losing in Game 7 of the NLCS for the third time with three different teams: Houston, New York and St. Louis.

He lost to the Cardinals in his first two trips and couldn't get there playing for St. Louis either. He had one hit Monday night and stole a base – his record 11th in the postseason without being caught – but it wasn't nearly enough.

"There's a lot of players that don't make it to the World Series, so they shouldn't feel sorry about me," Beltran said. "I was trying to do the best I could to get there and it didn't happen."

Lohse allowed one run in the first inning and then came up to bat in the biggest spot of the game for the Cardinals. With runners on second and third and two outs in the second, Lohse hit a line drive that looked as if it would reach the outfield to give St. Louis the lead.

But shortstop Brandon Crawford made a leaping grab to rob Lohse and the hole quickly got bigger. Lohse allowed an RBI single to fellow pitcher Matt Cain in the second and couldn't retire a single batter in a rocky third inning.

The Giants loaded the bases with nobody out to knock Lohse from the game, and reliever Joe Kelly broke Pence's bat at the label with a 95 mph fastball. The shattered barrel hit the ball two more times, putting an odd spin on the ball that sent it slicing in another direction and into left-center, fooling Kozma on the play.

"The read I got, it was going toward the hole," Kozma said. "I thought he came around it. The ball made like a banana and went up the middle. I just reacted to the ball and had no chance at it."

Marco Scutaro and Pablo Sandoval scored easily on the double and Buster Posey raced home from first to make it 5-0 when center fielder Jon Jay bobbled the ball for an error. The Giants tacked on two more runs in the inning, providing a deficit too big even for the comeback Cardinals to overcome.

That brought an end to what had been a remarkable season when the Cardinals made it back to the postseason under first-year manager Mike Matheny despite losing star slugger Albert Pujols to free agency and the retirement of longtime manager Tony La Russa.

St. Louis won 12 of its final 16 games to earn the second NL wild card on the second-to-last day of the season, then won 6-3 in a winner-take-all playoff at Atlanta to reach the division series. The Cardinals advanced to the NLCS with that memorable four-run ninth inning in Washington that stunned the Nationals.

"It wasn't how we scripted it to finish, but it was certainly a great run that these guys need to be very proud of," Matheny said.

Loading Slideshow...
  • San Francisco Giants' Marco Scutaro reacts after the final out in Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. The Giants won 9-0 to win the series. (AP Photo/Mark Humphrey)

  • The San Francisco Giants celebrate after the final out in Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. The Giants won 9-0 to win the series. (AP Photo/Mark Humphrey)

  • The San Francisco Giants celebrate after the final out in Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. The Giants won 9-0 to win the series. (AP Photo/Mark Humphrey)

  • The San Francisco Giants celebrate after the final out in Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. The Giants won 9-0 to win the series. (AP Photo/Mark Humphrey)

  • San Francisco Giants relief pitcher Sergio Romo reacts after the final out in Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. The Giants won 9-0 to win the series. (AP Photo/Ben Margot)

  • The San Francisco Giants celebrate after the final out in Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. The Giants won 9-0 to win the series. (AP Photo/David J. Phillip)

  • San Francisco Giants relief pitcher Sergio Romo and catcher Buster Posey react after the final out in Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. The Giants won 9-0 to win the series. (AP Photo/David J. Phillip)

  • San Francisco Giants relief pitcher Sergio Romo reacts after the final out in Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. The Giants won 9-0 to win the series. (AP Photo/David J. Phillip)

  • San Francisco Giants relief pitcher Sergio Romo and catcher Buster Posey react after the final out in Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. The Giants won 9-0 to win the series. (AP Photo/David J. Phillip)

  • The San Francisco Giants celebrate after the final out in Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. The Giants won 9-0 to win the series. (AP Photo/David J. Phillip)

  • San Francisco Giants relief pitcher Sergio Romo reacts after the final out in Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. The Giants won 9-0 to win the series. (AP Photo/David J. Phillip)

  • A grounds keeper and umpire look over the wet field during the ninth inning of Game 7 of baseball's National League championship series between the San Francisco Giants and the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. (AP Photo/Ben Margot)

  • St. Louis Cardinals' Carlos Beltran bats in the rain during the ninth inning of Game 7 of baseball's National League championship series against the San Francisco Giants Monday, Oct. 22, 2012, in San Francisco. (AP Photo/David J. Phillip)

  • St. Louis Cardinals' Yadier Molina and Daniel Descalso watch from the dugout during the ninth inning of Game 7 of baseball's National League championship series against the San Francisco Giants Monday, Oct. 22, 2012, in San Francisco. (AP Photo/David J. Phillip)

  • San Francisco Giants fans cheer during the eighth inning of Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. (AP Photo/Mark Humphrey)

  • St. Louis Cardinals starting pitcher Kyle Lohse sits on the bench during the eighth inning of Game 7 of baseball's National League championship series against the San Francisco Giants Monday, Oct. 22, 2012, in San Francisco. (AP Photo/David J. Phillip)

  • San Francisco Giants' Brandon Belt hits a home run during the eighth inning of Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. (AP Photo/Mark Humphrey)

  • St. Louis Cardinals relief pitcher Jason Motte throws during the eighth inning of Game 7 of baseball's National League championship series against the San Francisco Giants Monday, Oct. 22, 2012, in San Francisco. (AP Photo/Ben Margot)

  • San Francisco Giants catcher Buster Posey heads back to the dugout as St. Louis Cardinals' Tony Cruz (48) reacts after striking out during the eighth inning of Game 7 of baseball's National League championship series Monday, Oct. 22, 2012, in San Francisco. (AP Photo/David J. Phillip)

  • San Francisco Giants' Angel Pagan is tagged out at home by St. Louis Cardinals catcher Yadier Molina during the seventh inning of Game 7 of baseball's National League championship series Monday, Oct. 22, 2012, in San Francisco. (AP Photo/David J. Phillip)

  • St. Louis Cardinals catcher Yadier Molina and David Freese sit in the dugout during the seventh inning of Game 7 of baseball's National League championship series against the San Francisco Giants Monday, Oct. 22, 2012, in San Francisco. (AP Photo/David J. Phillip)

  • San Francisco Giants relief pitcher Santiago Casilla throws during the eighth inning of Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. (AP Photo/Ben Margot)

  • St. Louis Cardinals' Pete Kozma can't handle a ball hit by San Francisco Giants' Pablo Sandoval during the seventh inning of Game 7 of baseball's National League championship series Monday, Oct. 22, 2012, in San Francisco. (AP Photo/David J. Phillip)

  • San Francisco Giants' Angel Pagan is tagged out at home by St. Louis Cardinals catcher Yadier Molina during the seventh inning of Game 7 of baseball's National League championship series Monday, Oct. 22, 2012, in San Francisco. (AP Photo/Ben Margot)

  • St. Louis Cardinals' Skip Schumaker sits on the bench during the sixth inning of Game 7 of baseball's National League championship series against the San Francisco Giants Monday, Oct. 22, 2012, in San Francisco. (AP Photo/David J. Phillip)

  • St. Louis Cardinals relief pitcher Mitchell Boggs throws during the seventh inning of Game 7 of baseball's National League championship series against the San Francisco Giants Monday, Oct. 22, 2012, in San Francisco. (AP Photo/Ben Margot)

  • San Francisco Giants relief pitcher Jeremy Affeldt throws during the sixth inning of Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. (AP Photo/David J. Phillip)

  • St. Louis Cardinals' Matt Holliday catches a ball hit by San Francisco Giants' Marco Scutaro during the sixth inning of Game 7 of baseball's National League championship series Monday, Oct. 22, 2012, in San Francisco. (AP Photo/David J. Phillip)

  • St. Louis Cardinals' Skip Schumaker sits on the bench during the sixth inning of Game 7 of baseball's National League championship series against the San Francisco Giants Monday, Oct. 22, 2012, in San Francisco. (AP Photo/David J. Phillip)

  • San Francisco Giants manager Bruce Bochy takes starter Matt Cain out of the game during the sixth inning of Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. (AP Photo/Ben Margot)

  • San Francisco Giants starting pitcher Matt Cain throws during the sixth inning of Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. (AP Photo/Ben Margot)

  • St. Louis Cardinals starting pitcher Kyle Lohse sits on the bench during the sixth inning of Game 7 of baseball's National League championship series against the San Francisco Giants Monday, Oct. 22, 2012, in San Francisco. (AP Photo/David J. Phillip)

  • St. Louis Cardinals relief pitcher Edward Mujica throws during the fourth inning of Game 7 of baseball's National League championship series against the San Francisco Giants Monday, Oct. 22, 2012, in San Francisco. (AP Photo/Ben Margot)

  • St. Louis Cardinals relief pitcher Trevor Rosenthal throws during the fifth inning of Game 7 of baseball's National League championship series against the San Francisco Giants Monday, Oct. 22, 2012, in San Francisco. (AP Photo/Ben Margot)

  • San Francisco Giants' Hunter Pence catches a ball at the warning track off the bat of St. Louis Cardinals' Carlos Beltran during the fifth inning of Game 7 of baseball's National League championship series Monday, Oct. 22, 2012, in San Francisco. (AP Photo/Mark Humphrey)

  • St. Louis Cardinals starting pitcher Kyle Lohse sits on the bench during the fourth inning of Game 7 of baseball's National League championship series against the San Francisco Giants Monday, Oct. 22, 2012, in San Francisco. (AP Photo/David J. Phillip)

  • A San Francisco Giants fan cheers during the third inning of Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. (AP Photo/Mark Humphrey)

  • St. Louis Cardinals starting pitcher Kyle Lohse is taken out of the game during the third inning of Game 7 of baseball's National League championship series against the San Francisco Giants Monday, Oct. 22, 2012, in San Francisco. (AP Photo/Eric Risberg)

  • San Francisco Giants' Pablo Sandoval reacts after scoring during the third inning of Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. (AP Photo/Ben Margot)

  • San Francisco Giants' Brandon Crawford (35) breaks up a double play with St. Louis Cardinals' Daniel Descalso covering during the third inning of Game 7 of baseball's National League championship series Monday, Oct. 22, 2012, in San Francisco. (AP Photo/Eric Risberg)

  • St. Louis Cardinals starting pitcher Kyle Lohse reacts during the third inning of Game 7 of baseball's National League championship series against the San Francisco Giants Monday, Oct. 22, 2012, in San Francisco. (AP Photo/David J. Phillip)

  • San Francisco Giants' Marco Scutaro reacts as Buster Posey (28) scores during the third inning of Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. (AP Photo/Mark Humphrey)

  • St. Louis Cardinals' Pete Kozma tries to throw over umpire Bill Miller during the third inning of Game 7 of baseball's National League championship series against the San Francisco Giants Monday, Oct. 22, 2012, in San Francisco. Hunter Pence was safe at home. (AP Photo/Mark Humphrey)

  • San Francisco Giants' Hunter Pence hits a three-run double during the third inning of Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. (AP Photo/Mark Humphrey)

  • San Francisco Giants' Hunter Pence hits a three-run double during the third inning of Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. (AP Photo/David J. Phillip)

  • San Francisco Giants' Hunter Pence is congratulated after scoring in the third inning of Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. (AP Photo/David J. Phillip)

  • San Francisco Giants' Hunter Pence hits a three-run double during the third inning of Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. (AP Photo/Ben Margot)

  • San Francisco Giants' Buster Posey scores past St. Louis Cardinals catcher Yadier Molina during the third inning of Game 7 of baseball's National League championship series Monday, Oct. 22, 2012, in San Francisco. Posey scored from first on a double by Hunter Pence. (AP Photo/David J. Phillip)

  • St. Louis Cardinals relief pitcher Joe Kelly warms up during the third inning of Game 7 of baseball's National League championship series against the San Francisco Giants Monday, Oct. 22, 2012, in San Francisco. (AP Photo/Ben Margot)

  • San Francisco Giants' Pablo Sandoval hits a double during the third inning of Game 7 of baseball's National League championship series against the St. Louis Cardinals Monday, Oct. 22, 2012, in San Francisco. (AP Photo/David J. Phillip)

  • San Francisco Giants' Gregor Blanco reacts after making a catch on a ball hit by St. Louis Cardinals' Allen Craig during the third inning of Game 7 of baseball's National League championship series Monday, Oct. 22, 2012, in San Francisco. (AP Photo/David J. Phillip)