style better exception handling in solr indexer