Solrutils: better exception handling in indexers

 * Improves exception handling for add and commit calls

 * Makes use of autocommit in case commit could not be
   performed