title: Dedicated event handler for close (x) button in jQuery UI Dialog
body: <p>Is there a way to wire into the close (x) button on a jQuery UI Dialog, such that you can provide a dedicated event handler?  Using the "close" or "beforeclose" event does not work because if you have other buttons in your dialog that also cause the dialog to close, you are always going to hit the "close" and "beforeclose" events, which is not desirable.  I want a way to run specific code from the close (x) button.</p>