Yusmeiro Petit's bid for a perfect game was broken up by Eric Chavez's two-out single in the ninth inning, but the right-hander got the next batter to close out the San Francisco Giants' 3-0 victory over the Arizona Diamondbacks on Friday night.