HSEARCH-472 Improving dynamic sharding test, adding better error handling to HibernateSessionServiceProvider