You can attempt to listen for the HASS event but it may well not get picked up by AD because it is busy shutting down and reconnecting things.
AppDaemon does have an event for HASS starting which you can use to imply that home assistant has shutdown and later restarted …