DAR-86: track dialog button close instead of dialog close.

We used to track everytime a dialog closes, which is too ambiguous. We want to instead track whenever the close button (X) is clicked.