It was saved from total destruction only to end up, ignominiously, as a state prison.
It was saved from distraction only to become a prison. 
mnli hypothesis: It was saved from distraction only to become a prison.  premise: It was saved from total destruction only to end up, ignominiously, as a state prison.