### Tested versions v4.6.dev4.official [bd2ca13c6] ### System information windows 11 ### Issue description Possibly related to #112880 best explained by video, notice how - the previous instances of the scene persist after closing it - the name of the scene is forcibly changed (`MyScene` -> `MyScene2` -> `MyScene3`) https://github.com/user-attachments/assets/fa79cfc3-ebfa-4159-adf0-b25aacb3b112 ### Steps to reproduce - open a scene that has a script on its root (even a single node, with an empty script) - move the script in the file system - close the open scene - the scene should persist ### Minimal reproduction project (MRP) any node with a script [mrp-leftover-scene.zip](https://github.com/user-attachments/files/23630390/mrp-leftover-scene.zip)