Split the handlers in `OnQuit` between the repeatable and non-repeatable ones. Trigger the non-repeatable ones only on program exit.
Split the OnQuit functionality of Statistics as a separate header and object file. Rework the interface to use lambdas instead of the OnQuitInterface.