Added fix for process.nextTick on callback passed to socket