The game ends just like normal. It doesn't matter what age you're in. If you're in the industrial age however, you won't be able to build the UN ( I think) and therefore won't be able to achieve a diplomatic victory (or a spaceship victory, you won't have spaceship techs until modern).