Save config early so that it is always saved, even if the game crashes