Issue 533 umlaute fixes

Fix an issue with using the builded jar with an elasticserach instance which already had a plugin installed.
And remove a potential leak.