If a button or other input is assigned to control a script and the script is stopped or other condition which causes the script to complete the On End statements of the script are executed.
If a zone, group, channel, scene is controlled by the script with a fade time, the fade operation will continue.
For instance a color temperature fade from warm to cool over a period of times (e.x. 30 minutes) will continue to fade even after the script is stopped.
The same behavior also applies to the intensity controlled over a fade period.
In order to deliberately stop the fade operation, an On End statement or other step or script would need to execute to set the attribute or level to a specific value.