Finishing the dialog.