Proper cleanup on early exit in zeroconf test