[checkmk-commits] Win-agent build: improve error handling and cleanup