How to Fire a Close Event on Dialog X Button Click