Only list EOFError in one rescue block

Doesn't seem right to list the same exception in two rescue blocks.