Add new method modx->webAlertAndQuit to use instead of errorHandler class.