Closing the confirmdialog from X will now work as intended (hopefully).