API Error: Connection Refused
### Homebridge UniFi Protect Version

7.3.1

### Homebridge Platform and OS

macOS Sonoma

### Homebridge Version

1.8.4

### Node Version

20.17.0

### UniFi OS Version

4.0.6

### UniFi Protect Controller Version

4.1.53

### Describe the problem

I'm getting frequent logs saying "Dream Machine Special Edition [UDM-PRO-SE]: API error: Connection refused." 
My cameras seem to be functioning properly but the error happens every few hours. I've tried to create a new user and credentials to see if that was the issue, but no luck.

### Homebridge HBUP JSON configuration

```json
{
    "controllers": [
        {
            "address": "192.168.1.1",
            "password": "xxx",
            "username": "xxx"
        }
    ],
    "name": "UniFi Protect",
    "options": [
        "Disable.Video.HKSV.TimeshiftBuffer.6022326F92E1",
        "Enable.Device.SyncName.6022326F92E1",
        "Enable.Video.Transcode.Hardware.6022326F92E1",
        "Disable.Video.Transcode.6022326F92E1"
    ],
    "_bridge": {
        "username": "xxx"
    },
    "platform": "UniFi Protect"
}
```


### Relevant log output

```shell
[9/20/2024, 6:58:05 PM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE]: API error: Connection refused.
[9/20/2024, 6:58:05 PM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE]: API error: Connection refused.
[9/20/2024, 6:58:05 PM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE]: API error: Connection refused.
[9/20/2024, 6:58:05 PM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE]: API error: Connection refused.
[9/20/2024, 6:58:05 PM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE]: API error: Connection refused.
[9/20/2024, 7:59:05 PM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE]: API error: Connection refused.
[9/20/2024, 7:59:05 PM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE]: API error: Connection refused.
[9/20/2024, 7:59:05 PM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE]: API error: Connection refused.
[9/20/2024, 7:59:05 PM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE]: API error: Connection refused.
[9/20/2024, 7:59:05 PM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE]: API error: Connection refused.
[9/20/2024, 10:00:06 PM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE]: API error: Connection refused.
[9/20/2024, 10:00:06 PM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE]: API error: Connection refused.
[9/20/2024, 10:00:06 PM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE]: API error: Connection refused.
[9/20/2024, 10:00:06 PM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE]: API error: Connection refused.
[9/20/2024, 10:00:06 PM] [UniFi Protect] Dream Machine Special Edition [UDM-PRO-SE]: API error: Connection refused.
```


### Acknowledgment that you are only running UniFi OS and UniFi Protect releases from the Ubiquiti Official release channel

- [X] I acknowledge that I am not running any early access / beta firmwares or operating systems from either Ubiquiti or Apple.