Close input stream.