I think that we have always to remove the listener 

```js
function confirmDialogHandler(evt) {
  window.removeEventListener('confirmdialog', confirmDialogHandler);
```