Added public 'close' method to the modal dialog.