Prevent an exception from being swallowed and not reported via Sentry.