We are working on directories, so we should close directory instead of file-handle
Merge pull request #2 from MaStr/master

Warnings on fclose