Adding error handling to celery progress bar