Fix timeout when logging to Sentry from Celery tasks.