Why I do get "( ResetEngine )" when running script from a macro?

I do have a script for which I do created a macro button and every time I do launch the script from the macro button I do get an “( ResetEngine )” in the console and also the script runs painfully slow. If I do run the script using the “_RunPythonScript” command and I load the script this way, it is working much faster and without the “( ResetEngine )” warning. I do use Rhino7SR38 on Windows11.

Console output if I run from Button:

Command: -RunPythonScript
Python Script <C:\Scripts\Show_2D.py> ( ResetEngine ): C:\Scripts\Show_2D.py
Switched to 3D Model View
Command: _RunPythonScript
Command: -RunPythonScript
Python Script <C:\Scripts\Show_2D.py> ( ResetEngine ): C:\Scripts\Show_2D.py
Switched to 2D_Layout view
Command: -RunPythonScript
Python Script <C:\Scripts\Show_2D.py> ( ResetEngine ): C:\Scripts\Show_2D.py
Switched to 3D Model View

Console output if I run the same script by loading directly:

Command: RP
Command: _RunPythonScript
Switched to 2D_Layout view
Command: _Pause

P.S. Found the solution. The issue was that the script was loaded in the Rhino Python Editor and looks like it was running in the debug mode.