Two MobilePopupMessages hangs app

If I have a long section of code, and display a popup message at the start, followed by another at the end , the first message remains on screen afterwards and the screen is disabled - effectively hanging the app as the user can no longer interact.

Am I doing something wrong, or is this a bug?