Exit the program after a batch simulation ends.