Currently, the function `model.reset_before_quit()` is only called when egui is shut down. It ought to be possible to exit the headless (CLI) mode with some optional reset behaviour, too. Currently, it will always "do nothing".