close input stream in console