shifted eof into general catch block