Replaced URL with URI when get Solr conf folder. URL was escaped before. Check for null before shutting down EmbeddedSolr.