Clean up list of scripts when reconnecting. (see #10468)
Clear the menus.
Merge pull request #1674 from jburel/script-refresh

Script refresh