Throwing restart exception on nextTick