Work around crashes on windows+nvidia machines when closing plug-in gui windows