Confirm dialog before running lifecycle callbacks