Should not this be called inside `finalize`? Or at least in `setImmediate` wrapper to clear the stack?