handle eof as stream status