Make connector return EOF if it hits the end of file
Rewrit eerror detection logic in command processor