An issue with the leaked resource feature

I have a script that opens a file for write access, reads the file, writes to the file, then closes the file.
(I’m certain that the file closes).

When the script is done running the leaked resources dialog always appears with the icon to the file I’ve opened, read, written to and closed. If I click close or close all I get an error message that it’s not open.

(Note, while I was typing this post the error dialog stopped appearing. (I tried running it once more to get the exact quote from the error message). I tried stopping a script with an open file and it did appear and closed leaked resource correctly.)

This issue should be resolved in the SD 7.0.4 beta build.