implementing an alert cancellation delay to avoid spam in case of flip/flop