Oh I think I know!
The switch [Intro 2] gets turned on right after the text command gets processed whether or not the message window is open or closed. So then, the 2nd page of that event with the switch as a condition runs while the message window is still open. And you can't close the window because the even isn't on the 1st page anymore.
Lol I hope you understand me XD