DIY Zigbee: Alternative to resetting HA when interview fails?

I’'m experimenting with desiging my own Zigbee devices (using XBee, ESP32 etc.) and although I have some examples working, one of the problems I have is that if the ‘Device interview’ fails e.g. due a bug in my code, I can’t get the device to reconnect unless I completely reset HA. Until the interview completes, it seems the device doesn’t show up anywhere in HA so I have no way to remove it. Is there any alternative to resetting HA when this happens?

I’m using ZHA.