Called once the whole simulation has finished, either because it reached its latest point or because the user stopped it, with the environment, the final time, and the last step.