Steven Matz #32 of the New York Mets reacts after giving up a sixth run to the Atlanta Braves in the fifth inning (Kevin C. Cox/Getty Images)

James Loney hit a three-run homer, Travis d'Arnaud drove in three runs and the New York Mets survived Atlanta's six-run fifth inning to beat the Braves 8-6 on Friday night.

The Mets led 8-0 after Loney's three-run homer in the fifth. Steven Matz almost blew the lead as he allowed six runs on eight hits in the bottom of the inning.

Brandon Snyder hit a pinch-hit, three-run homer and Adonis Garcia had a two-run double in Atlanta's big inning.

Hansel Robles (2-3) threw 2 2/3 perfect innings to stop the Braves' comeback. Jeurys Familia recorded the final four outs for his major league-leading 25th save, with the last coming when he struck out Jace Peterson — but the ball bounced away from d'Arnaud, who quickly recovered it and threw a one-hopper to a stretched-out Loney, who dragged his foot along the bag. A video review confirmed the final out.

Sign up for the NJ1015.com Newsletter

Get the best of NJ1015.com delivered to your inbox every day.

(Copyright 2016 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed)