Added basic error handling for failed shards in histogram module.