early eof handling.