run_func: restore set -E for trap ERR.