Change mfile_/cfile-functions to return error code(s) rather than exit.