Adding checks to ensure solr service is started before doing things