Fix file descriptor leak

I haven't tried to use this yet, but it should, in theory, fix the file descriptor leak reported at https://code.google.com/p/wro4j/issues/detail?id=864 Since you're much more familiar with the code, could you also do a review for possible leaking descriptors?

I'm hoping you can publish a snapshot version of 1.7.5 with this fix :-)