DView will close an open SQL file if the user starts to open a new one, but cancels it. Steps to reproduce.
- Open SQL file (from EnergyPlus/OpenStudio in my case)
- Initiate opening a new file from the File menu
- Cancel opening
DView will close the currently open SQL file.