Bugfix: If last opened file is deleted or renamed, exception is handled.