The SIGTERM/SIGINT handlers were re-registered on every module evaluation, and a build worker receiving both signals logged again after logger.end(), raising ERR_STREAM_WRITE_AFTER_END during `next build`. Guard with an own flag (winston's readable-stream@3 Logger has no writableEnded) and register the handlers once per process with process.once. Closes MITHOME-126 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>