Leaking Filehandles

Any simple perfomance test against a Mifos instance shows that filehandles are not properly closed. We should spend some time finding and fixing these problems.

Starting point for working on this issue

http://mifosforge.jira.com/browse/MIFOS-1929