Clear alerts on state change.