The nanomachines would then go out and reform the planet, first by creating an artificial organic "computer" layer, and then forming a crust on top for the aliens to live on. Then the nanomachines would turn themselves off, keeping themselves in reserve for when the computer layer needed a repair. 