19654 - Fix running scripts not properly updated when done programmatically

Job: https://worklist.net/19654

Add a slot to Application to receive ScriptEngine::finished signals.
Notify the Running scripts widget of stopped scripts so it can properly
move them to the recent scripts list.