Close dialog on background veil click

Clicks to the background veil will now close the dialog.