What happens to UPI mandate based payments when the underlying bank account is closed?

When we are accepting an UPI mandate there is an account which is linked to the same from which the amount gets debited at the set frequency. Can the bank account be closed if this is the case? If so what will happen when the account is closed but the UPI mandate is still active?