enhance debug log
handle the eof error