Donald Trump won’t face the corporate death penalty after all.

A New York judge on Friday spared the ex-president that worst case punishment as he ruled in a civil case alleging Trump fraudulently misrepresented financial figures to get cheaper loans and other benefits.

Still, Trump got slammed hard, facing big cash penalties, outside supervision of his companies and restrictions on his borrowing.

In a pretrial ruling last year, the same judge threatened to shut down much of the Republican presidential front-runner’s business by calling for the “dissolution” of corporate entities that hold many of his marquee properties. That raised the specter of possible fire sales of Trump Tower, a Wall Street skyscraper and other properties.

But New York Supreme Court Judge Arthur Engoron called off the dissolution.

Instead, he said the court would appoint two monitors to oversee the Trump Organization to make sure it doesn’t continue to submit false figures.