Detect when the last file has been closed and update _currentDocumentId + menu state