Wrap CKiiQueryHandler with std::shared_ptr