What will happen if an annuity company close down?

It depends on the type of annuity and how your payouts are calculated. There are several different methods.

You do have the option of naming a beneficiary on your annuity, and with certain types of payout options that beneficially could receive the money in your annuity when you die. Other options just pay out during your lifetime, and the payments stop when you die.