[Win/Linux] A temporary fix crashing when closing WebFrame.