A new feature that would act similarly to the "Automatically close VISA sessions" option and close all open file references once the top level VI has stopped running.
This new function would preclude the situation where LabVIEW locks, and keeps a file locked until the entire development environment is closed.
(I would even be happy with a menu option to explicitly close all open file references.)
The primary use case would be during development/debugging. If you stop or abort your top level VI without closing a file reference, LabVIEW will hang on to the reference keeping it open, but inacessable, until the dev environment is shut down.
It seems that if there is not an open reference to the file on the block diagram or the top level VI has stopped running, and certainly when all open VIs are closed, then all files should be closed and locking handles should be released.
I suppose this concept could be expanded to cover any reference type that LabVIEW does not implicitly close when the top level vi goes idle.