After end_quiet_mode closes fd 3/4, the overridden warn/error/info functions still reference >&3, causing "bad file descriptor" errors for any calls after quiet mode ends (e.g. the reboot prompt). Restore the original function definitions when leaving quiet mode. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>