If failed lookups are fatal, re-raise the exception

Fixes #1938.