title: Difference Between .dialog("close") and .dialog("destroy")
body: <p>What is the difference between <code>.dialog("close")</code> and <code>.dialog("destroy")</code> in jquery-ui?</p>
  
  <p>I have a script where the previous developer had used <code>.dialog("destroy")</code> but now I've to perform some actions once the dialog is closed. I've found <code>beforeclose</code> that is called with <code>.dialog("close")</code> and not with <code>.dialog("destroy")</code>. So I've to change the method from <code>destroy</code> to <code>close</code> to make it work. </p>
  
  <p>So is there anything that I'll miss if I use <code>.dialog("close")</code> and not <code>.dialog("destroy")</code> ?</p>
  
  <p>PS: The dialog is using custom buttons to close itself, and the <code>.dialog("close")</code> is called on the click event of the button</p>