glue: add uncaughtException for node < 0.18
glue: uncaughtException handler for node < 0.10