Clean up error messages and alerts.