don't close the readers when reading from stdin, it leads to a "Stream closed" exception