Fix Confirm dialog boxes being closed incorrectly.

use destroy instead of close.