Forts do not disappear when pillaged or when occupied by an enemy unit. When pillaged, they can be repaired. If you are seeing what appear to be disappearing forts in game, it must be a graphical glitch. Mouse hover the tile; it should say the fort is damaged. Pillaging a fort (like any other improved tile, unless the only improvement is a road or railroad) will provide some bit of gold.