Use unique_ptr instead of DeleteContainerSeconds.