## What?
Logs write and close errors when writing debug image protocol output to
files.
The debug logger now wraps `WriteString` and `Close` calls for both
`DEBUG_IMAGE_PROTOCOL_LOG` and `DEBUG_KITTY_LOG`, while keeping the
existing `os.OpenFile` security lint annotations.
## Why?
Closes #751.
Ignoring file write and close errors can hide failures in debug logging
and make image protocol issues harder to diagnose. Logging these errors
through `loglevel.Debugf` keeps failures visible without changing normal
runtime behavior.
---------
Co-authored-by: FromSi <fromsi665@gmail.com>