fixing FS close errors
Merge pull request #51 from DemandCube/dev/kingofpoptart

fixing FS close errors