I recall a C++ book saying something like &quot;ignore it, log an error, or call exit()&quot; to handle an error in a destructor. In other words, there is no correct answer. In practice, the operations usually performed in a destructor are unlikely to fail, and in &quot;typical&quot; programs one of those 3 solutions is probably acceptable. But it&#x27;s a serious issue in software that is supposed to be 100% robust, i.e. [1].<p>[1] <a href="http:&#x2F;&#x2F;250bpm.com&#x2F;blog:4" rel="nofollow">http:&#x2F;&#x2F;250bpm.com&#x2F;blog:4</a>