If type is not success it means is an warning which I don't want to remove, as It should be closed by user. Doing so we can make sure that the user has seen the warning/error notification.