input stream closing