fix(zerocode): gate signal cleanup to Unix (#9721)