command/agent: block windows socket errors