grc: catch EOFError on fg exit