Disgraced former congressman Anthony Weiner, who pleaded guilty to exchanging lewd text messages with a 15-year-old girl, admits his actions not only ruined his marriage but his wife's political future as well.

Weiner's lawyers wrote Judge Denise Cote late Wednesday asking her to spare Weiner from jail time and instead give him probation after he was found guilty in May of transferring obscene material to a minor. The crime is punishable by up to ten years in prison, but Weiner entered a plea deal that would give him a maximum of 27 months in prison.

"My continued acting out over years crushed the aspirations of my wife and ruined our marriage," Weiner wrote in a separate letter, first reported by the New York Times. He added that his young son "will forever have to answer questions about the public and private failings of his father."

Huma Abedin, a top aide to Hillary Clinton during her 2016 presidential campaign, filed for divorce from Weiner shortly after his guilty plea. It was the FBI's investigation of Weiner that led the agency to reopen its probe of Hillary Clinton's emails just before the November election after potentially relevant material was found on his laptop.

"I am so deeply sorry for the harm I have done to her, and I live with the sorrow that I will never be able to fix that," Weiner added.

Abedin also wrote the judge on behalf of Weiner. She said that while she was "devastated" by his behavior, she asked her to weigh the severity of the sentence in light of its potential impact on her young son.

"[A]s a mother, I have always done and will do anything I think will help [name redacted] be as safe, happy, healthy and complete as possible," Abedin wrote.

Weiner is set to be sentenced Sept. 25 and prosecutors are expected to make their sentencing recommendation next week. Acting U.S. attorney in Manhattan, Joon Kim, said a sentence of 21 to 27 months was "fair and appropriate" in Weiner's plea agreement.