After restart of macOS - zwavejs2mqtt sometimes offline

I can open localhost:8091, but HA seems to not connect. After a restart of HA it works.

Is there any way to prevent this?
Should I delay the start of HA?
Can I reconnect automatically?

How can I start an automation, when that happens? Is there a “zwave is online state”?