Preserve startup and migration error details, and stop automatic retries when account configuration is invalid. Fixes #503