add missing saveConfig() on server shutdown