Inform your credit card issuer of any automatic payments, and make arrangements to transfer them to another payment method before the card closure date.