Currently we cannot close an opened doc explicitly, and it blocks us from removing the file. Should make the document destruction available to user.