clean up alert handling