Fix JENKINS-18858
Merge pull request #19 from kunigaku/file-leak

Fix JENKINS-18858