Added terminate_job_when_celery_is_down functionality