A genetic program ensures the longevity of neurons