Close open input stream