Handle alerts.