Fix #390 closing inputstream in XMLConfigBuilder
Cleanup.