Added health check before continuing to re-index