Fix error handling when Sentry isn't working