Dillon Gee extended the Mets' shutout streak to 29 innings before Baltimore broke through late, and New York held off the Orioles 4-3 on a steamy Wednesday night for a three-game sweep.

The Mets nearly shut out the Orioles for the third straight day. Wilson Betemit hit a two-run homer in the eighth and Steve Pearce drew a bases-loaded walk in the ninth before Brian Roberts grounded out to end it.

Gee had been nicked only by pitcher Brian Matusz's single -- his first big league hit -- until Nick Johnson opened the eighth with an infield single and Betemit followed with a second-deck home run.

Silent for so long, the Orioles then threatened to go ahead. But with two on and two outs, Chris Davis hit a fly ball off Bobby Parnell that left fielder Scott Hairston caught against the wall.

Frank Francisco escaped a jam in the ninth for his 17th save in 20 chances, completing the combined six-hitter.

(Copyright 2012 by The Associated Press.  All Rights Reserved.)