destroy non-fs streams correctly

not every input streams comes with a fd.
Merge pull request #108 from themasch/patch-1

destroy non-fs streams correctly