Support setImmediate() error wrapping