https://www.epo.org/en/service-support/faq/myepo-services/central-fee-payment/automatic-debiting/what-if-my-application

What if my application is closed, do I need to explicitly revoke my automatic debit orders?

No, automatic debiting ceases to be effective on the day on which the international or European patent application is withdrawn or finally deemed withdrawn or the European patent application is finally refused. No fees will be debited after this date (point 11.1 AAD).