Added disable_readline. Do not try read stdin, after end of stdin reached