Ensure that handleFileSave always resolves with the fileEntry of the saved document; streamline handleFileClose accordingly