Added auto close for alerts