In node, emit errors instead of throwing them.

This seems to make tests pass in Node v0.8 too.

However, at the moment, I am not convinced this is a really safe fix.

Opinions?