close input stream

@waseemh