Allow the callback to prevent dialog hiding.

I want to perform an action after a button is clicked.  If the action fails, I want to keep the dialog open and provide feedback to the user.

This change will keep the dialog open if the callback returns false.