NEW YORK (AP) — Major League Baseball had this message for Alex Rodriguez and agent Scott Boras: Shame on you.

Boras announced during Game 4 of the World Series on Sunday night that A-Rod was opting out of the final three seasons of his contract with the New York Yankees. The timing left baseball officials livid, and Boras apologized Monday evening, just after Rodriguez filed with the players’ association and became a free agent for the first time since 2000.

“We were very disappointed that Scott Boras would try to upstage our premier baseball event of the season with his announcement,” Bob DuPuy, baseball’s chief operating officer, said Monday in an e-mail to The Associated Press. Boras said causing a distraction was an unintended consequence.

“I apologize to the Boston Red Sox and Colorado Rockies and their players, Major League Baseball and its players, and baseball fans everywhere for that interference,” he said in a statement. “The teams and players involved deserved to be the focus of the evening and honored with the utmost respect. The unfortunate result was not my intent, but is solely my fault. I could have handled this situation better, and for that I am truly sorry.”