Add uncaughtException handler that logs errors for knob.js process