It's hard to give you suggestions without some of the information that caethyril asked for in post 11 about where/when/how you're calling this code.
And the presence of any other plugins would be important.
For example, you're doing
this.setWaitMode() and
this.wait() - are you aliasing a Game_Interpreter method, or making a new one?
Just from looking at what you've posted, it's really hard to understand why you're doing all of this via code instead of regular event commands. That's the default method for working in RPG Maker which should be used when possible.
Edit:
@Garpie sent me some of the code to look at.
It's waiting because that's what newPage() does. As caethyril said above, if you just paste your actual game message code into the console, it correctly displays, waits, then disappears on its own. But having the newPage() call is creating the prompt for player input.
Personally, I would still event this system. I won't go into too much because you felt some need to take it to private messages instead of discuss it here in your thread, but...I appreciate you're making this system that is flexible by taking arguments in a plugin command, but it takes just as little time for the user to define variables to hold those arguments and then call a common event.
And then all of the window stuff will just work.