Fix crash on CEF shutdown