fix(doc): add ultimate histo comment before destroy document (closes #4929)