Close input stream after use