add closedir to avoid fd leak
fixup
Merge pull request #35 from pantheon-systems/Mar27closedir

Mar27closedir