Update to use setImmediate instead of process.nextTick

Get rid of Recursive process.nextTick detected. This will break in the next version of node. Please use setImmediate for recursive deferral