End of the simulation