Added Sys.exit, Check node version before accessing #Immediate

setImmediate/clearImmediate aren't available for Node < 0.9,
in this case setImmediate and clearImmediate are left undefined.