Home Assistant integration briefly stopping and reconnecting every few minutes
## Alarm system

MG5050 + ESP32 Serial -> IP

MG5050 Firmware: 7.21 build 0 

## Environment

Home Assistant Addon

### Git branch

Tag 3.4.0

## Question

I'm not so much sure if this is a bug or a misconfiguration in my setup somewhere, so I'll start with a question.

So basically everything is working 99% of the time just fine (👍 ) but if I look at the history of the PAI service in Home Assistant I see that it goes offline briefly numerous times at seemingly random intervals, see the state history below:

![image](https://github.com/ParadoxAlarmInterface/pai/assets/1313205/adcb3a8b-8279-413e-aa91-14370cc99bfe)

Raw csv entries look like this:

```
entity_id,state,last_changed
sensor.mg5050_pai_status,online,2024-02-28T22:00:00.000Z
sensor.mg5050_pai_status,stopped,2024-02-28T22:07:10.378Z
sensor.mg5050_pai_status,initializing,2024-02-28T22:07:10.428Z
sensor.mg5050_pai_status,connected,2024-02-28T22:07:17.775Z
sensor.mg5050_pai_status,online,2024-02-28T22:07:41.900Z
sensor.mg5050_pai_status,stopped,2024-02-28T22:34:01.854Z
sensor.mg5050_pai_status,initializing,2024-02-28T22:34:01.909Z
sensor.mg5050_pai_status,connected,2024-02-28T22:34:11.267Z
sensor.mg5050_pai_status,online,2024-02-28T22:34:39.394Z
sensor.mg5050_pai_status,stopped,2024-02-28T23:34:28.320Z
sensor.mg5050_pai_status,initializing,2024-02-28T23:34:28.370Z
sensor.mg5050_pai_status,connected,2024-02-28T23:34:37.725Z
sensor.mg5050_pai_status,online,2024-02-28T23:35:00.744Z
sensor.mg5050_pai_status,stopped,2024-02-28T23:42:27.339Z
sensor.mg5050_pai_status,initializing,2024-02-28T23:42:27.393Z
sensor.mg5050_pai_status,connected,2024-02-28T23:42:35.089Z
sensor.mg5050_pai_status,online,2024-02-28T23:42:52.181Z
sensor.mg5050_pai_status,stopped,2024-02-29T00:04:09.809Z
sensor.mg5050_pai_status,initializing,2024-02-29T00:04:09.861Z
sensor.mg5050_pai_status,connected,2024-02-29T00:04:17.168Z
sensor.mg5050_pai_status,online,2024-02-29T00:04:41.885Z
sensor.mg5050_pai_status,stopped,2024-02-29T00:35:26.323Z
sensor.mg5050_pai_status,initializing,2024-02-29T00:35:26.373Z
sensor.mg5050_pai_status,connected,2024-02-29T00:35:34.742Z
sensor.mg5050_pai_status,online,2024-02-29T00:35:55.499Z
sensor.mg5050_pai_status,stopped,2024-02-29T01:36:29.911Z
```

Does anyone know why this could possibly be happening and anywhere else I could look to try and get more info?

As I brought up here (https://github.com/ParadoxAlarmInterface/pai/issues/126#issuecomment-1967455083) I'm getting my logs spammed constantly with this error "PAI.paradox.lib.handlers - No handler for message 5" this is happening continuously and not just at certain intervals like other have reported, mine is logging this like every second of every day.

That might be a clue, but I'm also not sure it's related as looking at the code these messages just get ignored but maybe it's some memory pressure issue due to the amount getting logged? I'm not familiar with how the logging works though so just spitballing.

Any clues would be appreciated 🙇 

## Logs (if required)
