Incl. some error handling in settings.prod.