Fixed bug to call onClose handler when notification is automatically closed by the ttl timeout function