Callback fired when the component requests to be closed.
{string} reason Can be: "escapeKeyDown", "backdropClick", "tabKeyDown".
"escapeKeyDown"
"backdropClick"
"tabKeyDown"