Consolidate handling of some fopen failures.
14 files changed