If Your Partner Dies, Who Gets The Business?

If your partner dies, who get's the business? Would you have the cash to buy out your partner's spouse/heirs if something were to happen to him or her unexpectedly? Have you documented and funded a buy/sell agreement to purchase the outstanding stake of the business...