properly handle errors when listing buckets