System.gui.confirm closing without input

I am using system.gui.confirm in a script and it is popping up the confirm dialog for about 2 seconds, then it is closing on its own and evaluating as true. I also have system.gui.messageBox functions in the same script and they are running fine and stay up until OK is selected. Any help resolving this would be great.

A am running V7.8.2

Can you please share your code.