Runaway argument? I see CVR solved your problem with an environment. That's good (maybe we should add that environment in general), but this error indicates the problem is simply having a blank line (\par) in the argument, and we should just make \HCode \long in order to allow it. (I admit I didn't actually check if something weirder is going on.)
CVR, wdyt? k