handles exception in solr