error handler for settings (todo: move to generic app);