Add AutoDtor class to automatically call a custom deleter function on destruction.