Openhabian 3 doesn't reconnect after wifi connection is lost

I’m having an odd issue with Openhabian 3. I have it running on a Raspberry PI 4b and it all works fine until I reboot the wifi router, and for some reasons it goes into an odd loop when it tries to reconnect.

From the log below, I cannot figure out what is wrong… is avahi to blame? my wpa supplicant is generated open openhab-config and is very basic so not sure what else can be going on there.

Jun 08 01:06:02 openhab systemd[1]: Reloading Samba SMB Daemon.
Jun 08 01:06:02 openhab systemd[1]: Reloaded Samba SMB Daemon.
Jun 08 01:06:02 openhab avahi-daemon[30135]: Joining mDNS multicast group on interface wlan0.IPv4 with address 10.0.0.37.
Jun 08 01:06:02 openhab avahi-daemon[30135]: New relevant interface wlan0.IPv4 for mDNS.
Jun 08 01:06:02 openhab avahi-daemon[30135]: Registering new address record for 10.0.0.37 on wlan0.IPv4.
Jun 08 01:06:03 openhab dhclient[15101]: bound to 10.0.0.37 -- renewal in 84299 seconds.
Jun 08 01:06:03 openhab wpa_action[15195]: creating sendsigs omission pidfile: /run/sendsigs.omit.d/wpasupplicant.wpa_supplicant.wlan0.pid
Jun 08 01:06:03 openhab wpa_action[15200]: bssid=10:33:bf:d9:c6:80
Jun 08 01:06:03 openhab wpa_action[15200]: freq=2462
Jun 08 01:06:03 openhab wpa_action[15200]: ssid=<ssid>
Jun 08 01:06:03 openhab wpa_action[15200]: id=0
Jun 08 01:06:03 openhab wpa_action[15200]: mode=station
Jun 08 01:06:03 openhab wpa_action[15200]: pairwise_cipher=CCMP
Jun 08 01:06:03 openhab wpa_action[15200]: group_cipher=CCMP
Jun 08 01:06:03 openhab wpa_action[15200]: key_mgmt=WPA2-PSK
Jun 08 01:06:03 openhab wpa_action[15200]: wpa_state=COMPLETED
Jun 08 01:06:03 openhab wpa_action[15200]: ip_address=10.0.0.37
Jun 08 01:06:03 openhab wpa_action[15200]: p2p_device_address=de:a6:32:af:a6:ea
Jun 08 01:06:03 openhab wpa_action[15200]: address=dc:a6:32:af:a6:ea
Jun 08 01:06:03 openhab wpa_action[15200]: uuid=8749f3be-f7ae-5d3d-814d-b384c91216b4
Jun 08 01:06:03 openhab wpa_action[15202]: WPA_IFACE=wlan0 WPA_ACTION=DISCONNECTED
Jun 08 01:06:03 openhab wpa_action[15203]: WPA_ID=0 WPA_ID_STR= WPA_CTRL_DIR=/var/run/wpa_supplicant
Jun 08 01:06:03 openhab wpa_action[15206]: ifdown wlan0
Jun 08 01:06:03 openhab dhclient[15217]: Killed old client process
Jun 08 01:06:03 openhab avahi-daemon[30135]: Withdrawing address record for 10.0.0.37 on wlan0.
Jun 08 01:06:03 openhab avahi-daemon[30135]: Host name conflict, retrying with openhab-16
Jun 08 01:06:03 openhab avahi-daemon[30135]: Registering new address record for 2607:fea8:bfa4:d00:dea6:32ff:feaf:a6ea on wlan0.*.
Jun 08 01:06:03 openhab avahi-daemon[30135]: Registering new address record for 10.0.0.37 on wlan0.IPv4.
Jun 08 01:06:03 openhab avahi-daemon[30135]: Withdrawing address record for 10.0.0.37 on wlan0.
Jun 08 01:06:03 openhab avahi-daemon[30135]: Host name conflict, retrying with openhab-17
Jun 08 01:06:03 openhab avahi-daemon[30135]: Registering new address record for 2607:fea8:bfa4:d00:dea6:32ff:feaf:a6ea on wlan0.*.
Jun 08 01:06:03 openhab avahi-daemon[30135]: Registering new address record for 10.0.0.37 on wlan0.IPv4.
Jun 08 01:06:04 openhab dhclient[15217]: Internet Systems Consortium DHCP Client 4.4.1
Jun 08 01:06:04 openhab dhclient[15217]: Copyright 2004-2018 Internet Systems Consortium.
Jun 08 01:06:04 openhab dhclient[15217]: All rights reserved.
Jun 08 01:06:04 openhab dhclient[15217]: For info, please visit https://www.isc.org/software/dhcp/
Jun 08 01:06:04 openhab dhclient[15217]: 
Jun 08 01:06:04 openhab dhclient[15217]: Listening on LPF/wlan0/dc:a6:32:af:a6:ea
Jun 08 01:06:04 openhab dhclient[15217]: Sending on   LPF/wlan0/dc:a6:32:af:a6:ea
Jun 08 01:06:04 openhab dhclient[15217]: Sending on   Socket/fallback
Jun 08 01:06:04 openhab dhclient[15217]: DHCPRELEASE of 10.0.0.37 on wlan0 to 10.0.0.1 port 67
Jun 08 01:06:04 openhab systemd[1]: Reloading Samba SMB Daemon.
Jun 08 01:06:04 openhab systemd[1]: Reloaded Samba SMB Daemon.

FYI partially resolved this one - it was caused by a script I added in /etc/network/interfaces