add debug tools to track open files
close stream on no response
Merge pull request #30 from MarvinT/dev

bugfix for issue #28