[ImageManager] stop crashing IM if tmp folder can not be deleted.