Max Scherzer walks off the field with Nationals trainer Paul Lessard on Saturday night. (John McDonnell/The Washington Post)

Everything was going well for the Nationals until the top of the fourth inning of Saturday night’s loss to the Pirates, when Washington’s infield saw something wrong with Max Scherzer and gathered around him. Scherzer stopped mid-windup, just after he raised his hands above his head, seemingly because Daniel Murphy called to him.

What Murphy had seen was an awkward landing from Scherzer on the previous pitch, one which sent the righty into a weird post-pitch hop, then on a long trek around the mound. Scherzer tried to clear out his right cleat. Then bent over as if stretching his hamstring. When he tried to throw another pitch, Murphy appeared to stop him, brought the infield in, and called for Dusty Baker and Mike Maddux to walk out.

“Max had a right hamstring cramp. We took him out for precaution,” Baker said. “We gotta make it to the playoffs healthy. So we thought it was better that we make that move, the precautionary move, to get him ready.”

Scherzer did not speak to reporters after the game, the first time in his Nationals career he has not been available postgame. He had left Nationals Park to get what the team called a precautionary MRI on his right hamstring, something that does cast doubt on Baker’s optimistic prognosis, but is not necessarily surprising given Scherzer’s importance to this team and its cautious approach to injuries.

“He didn’t want to come out. We thought it was best,” Baker said. “Max never wants to come out. We thought it was best for him and us for him to go out.”

Had no one stopped him in the windup, he probably would have kept throwing. Game 1 of the National League Division Series is six days away, and Baker admitted that in a more important situation, Scherzer probably would have kept pitching. As for whether this trouble could affect the Nationals’ rotation for the NLDS, Baker was emphatic.

“No, no, no,” Baker said. “We didn’t even think about that.”

Read more on the Nationals:

Shawn Kelley done for the season with bone chips in right elbow

Anthony Rendon, feeling ‘a little fatigued,’ rests Saturday

From Friday: Stephen Strasburg & Co. keep giving Nats fans a reason to believe