Endogenous lifetime, accidental bequests and economic growth