Use std::unique_ptr in main process.