Display message when closing the dialog