notify input stream is closed.