add params.callbacks.ConfirmExit