It seems that the Rambam does not rule out the possibility that the world could face Divine judgment resulting in its destruction.