Not a huge issue, but unexpected behaviour.
Create a new script with the following code:
while (true) {
console.log('mark', new Date());
await wait(1000);
}
Start it, but don't save it. Then reload the page.
The script is empty (because unsaved) but the script is still running and logging, until reboot.