now the input stream is closed