Refunds to credit cards that are closed - what happens?

If you refund to a credit card that is closed does that transaction go through on the payment screen or do you get some notification that the refund did not authorize?

Is best practice to confirm/or get a new valid credit card when discussing refunds, or must you refund to the same credit card used in the original purchase?

Just doing some information gathering,

Thanks!