Close leaking input stream

@huwr, here's another open missing a close.