finish the alert