Stat_persistor: better handling of errors in config