Improved scope(exit) cppDelete.