bugfix for issue #28

adds debug log for number of files open and closes stream on no response
addresses issue #28