That should not happen. They would simply move all the essential services elsewhere when the capital is threatened. In fact, in CIV your capital is moved automatically when its captured; and I doubt anyone in one's right mind would have located something as important as spaceship control in a city, anyway. In a remote, hidden and well protected area more like. Still it can be a subject for some espionage action though.