GUI Window tried to begin rendering while something else had not finished rendering! Either you have a recursive OnGUI rendering, or the previous OnGUI did not clean up properly.
MissingReferenceException: The object of type 'UnityEditor.ContainerWindow' has been destroyed but you are still trying to access it.
Your script should either check if it is null or you should not destroy the object.