register_sentry breaks failed queue when func cannot be imported