Exception handling in Celery tasks