added NodeExecutor class for step-by-step execution
simplify cleanup code after node tree execution