Stop click propagation when close icon is clicked on the dialog