common: Close input stream.