Handle errors when removing the cache/links/temp directories.