A fail-safe mechanism for maintaining self-tolerance