Gracefully shutting down modem doing BLE DFU

We are using NRF52840 and modem HL78XX, zephyr NCS 2.4.1.

BLE DFU could be started at any time and modem could be active during all DFU process and during reset by FOTA.

What is the best way to gracefully shutdown modem during BLE DFU before reset occurs?

Any callback is available to set to be notified when DFU started or finished?

Kind regards

Related