Added onRemove callback - triggered when an error occured with the token