Fixed the issue about a deleted file continuously prompting for the file to be closed (closes #384).