fails:Dir#each returns the directory which remains open
