Add try/catch around http request to solr server