Unexpected shutdown of HomeAssistant service

This morning at 6:46 AM my Home Assistant service unexpectedly shut down. The last lines in the log, before the usual shutdown messages, were:

2022-02-04 06:46:44 ERROR (Thread-8) [pychromecast.socket_client] [Keuken(192.168.2.110):8009] Failed to connect. No retries.
2022-02-04 06:46:45 ERROR (Thread-7) [pychromecast.socket_client] [Woonkamer(192.168.2.80):8009] Failed to connect. No retries.

After manual restart everything worked correctly.
Any ideas of what could have caused this? My Home Assistant runs in a venv environment on a Ubuntu 20.4 server.