A Question Regarding Building/Rehabbing Permits

I wonder how permitting for rehabbing old office buildings goes. In a nearby town, an old office building was being rehabbed-only the builder lost the financing.
What happened was this-a developer bought the land and building, and proceeded to strip the building-they tore out the windows, interiors, and exterior cladding. Then the company went bankrupt and the work stopped. Now, the interior of the building has been exposed to the elements for three years-isn’t this causing damage?
In any event, I thought that building/rehab permits came with time limits-if you don’t complete the job within a fixed period of time, the city will stop the work.
I would also suspect that allowing a building to decay in this way, would make subsequent renovation more difficult.
In any event, do most city governments allow these things to drag on in this way?

If another developer buys the building he will need to get a new permit. Depending on the area and the origional construction yes there will be more work to bring the building to standard.

I know of one high rise that was built instages because the builders went bankrupt. The srtucture was built and all the exterior glass put in before the first builder went bankrupt. 3 or 4 years later a group of investors looked at the plans and figured they could finish the building and bought the building. The problem was the building codes changed and they had to modify the plans and rework parts of the building that did not meet the new codes. They went bankrupt before getting the ocupancy permit. 5 years later and other group of investors bought the building and finished it. They almost lost it all when they had to up grade elevators and fire life safety systems. But the building did open.