add a close-after option for alerts