Improves closing of resources, review of "try finally" code blocks

Conflicts:
	src/main/java/com/jaeksoft/searchlib/index/WriterLucene.java
	src/main/java/com/jaeksoft/searchlib/template/TemplateAbstract.java