TP Link Kasa - Thing / Links lost at power outage


I had to shut down my OH to add a switch in my office, in any case when I brought it back on the TP Link binding was missing and I had to re-link all my switches. Does anyone know why and how to avoid this. I assume it is less to do with the binding itself and more about how I have OH configured.