Replaced OTCleanup in various files with std::unique_ptr