protected void closeDialog() {
		if (isShowing()) {
			cancelCurrentTask();
			dialog.close();
		}
	}
The callback method for when the "Cancel" button is pressed. The
default behavior is to call setVisible(false) and dispose() on the
dialog.
Ghidra/Framework/Docking/src/main/java/docking/DialogComponentProvider.java