PONTIAC (CBS DETROIT/AP) — A Pontiac man who was in the middle of a divorce when he won more than $30 million must share the lottery windfall with his ex-wife.

The Michigan appeals court says a marriage isn’t over until it’s over. It means Mary Beth Zelasko can keep $15 million awarded by an arbitrator, although she and Rich Zelasko had been separated for two years when he bought the Mega Millions ticket in 2013. Their divorce wasn’t final until 2018.

READ MORE: Karen Carter, and Others Metro Detroiters Chipped In To Help Salvation Army’s Bed and Bread Radiothon

In a court filing, an attorney for Rich Zelasko said, “Rich was lucky, but it was his luck, not Mary’s, that produced the lottery proceeds.” But arbitrator John Mills said the ticket was marital property. The couple had agreed to have Mills make certain decisions during the divorce case.

READ MORE: Granholm Confirmed By Senate To Be Next Energy Secretary

The appeals court last week found no errors.

MORE NEWS: South Haven And Other Michigan Beaches Look To Hire Lifeguards To Stop Accidental Drownings

© 2019 CBS Broadcasting Inc. All Rights Reserved. This material may not be published, broadcast, rewritten, or redistributed. Associated Press contributed to this report.