Post2: Won't happen with the current plugin, sorry... If you feel it is doable, patches welcome
Post1: Probably this is the problematic command: "set debugevents off", it is sent to late in the original example.
p.s. don't use localized compiler it can confuse C::B