add on_failure hook to BaseTask
remove thumbnails explicitly in delete