After the Terps got on the board early, the Patriots' pitching picked up to stun them.
Some late heroics by Kevin Keister, Luke Shliger and Nick Lorusso finished off the Retrievers and lifted the Terps to their 17th win.
The Saints only got one hit off Savacool's pitching.
The Terps dropped an unexpected game to Delaware but will have a chance to build some momentum off the Saints.
The Terps had their four-game winning streak cut off by the Blue Hens in their fifth game in seven days.
Costes launched his seventh homer of the season to boost the Terps toward a second victory over the Hoyas.
After trailing for the majority of the game, Shaw came up with a big swing in the bottom of the ninth to secure the victory.
The Terps' loss to the Pirates was plagued with small mistakes and missed opportunities.