Fix example in atexit doc: Both open and read could raise the IOError (#10461 follow-up).

Thanks to SilenGhost for catching this.
1 file changed