guard more of the filesystem manipulations with handlers and log errors instead of letting them be raised and show up as internal errors related to PR 13403 original commit: 94b54db11823b4683234424174aca2836d422204
scribble/srcdoc' via submodules instead of
fprintf' ->