I proposed a solution to the problem by calling the CloseBrowser(true) function in the DoClose function with minor changes in the function code. But I'm not sure if the code is correct. There is no other way to solve this problem.
https://bitbucket.org/chromiumembedded/ ... quests/526