Unclosed input streams

This ist most likely the cause of #5.