msh: also handle EOF/read errors correctly

1 file changed