Appdaemon loses connection to HA

I have now enabled all logs but at the start they are empty. The appdaemon_daemon.log has no errors for now. Let’s see once it disconnects again. The appdaemon was installed as part of the HA Core community plugin to FreeNAS and so far was working ok. So it is installed in a FreeNAS jail in a virtualenv:

Testing virtualenv...

 CWD: /usr/local/share/appdaemon
 Python 3.8.6
 AppDaemon 4.0.5

And here is the appdaemon_daemon.log:

2020-10-27 14:19:52.361000 INFO AppDaemon: AppDaemon Version 4.0.5 starting
2020-10-27 14:19:52.361274 INFO AppDaemon: Python version is 3.8.6
2020-10-27 14:19:52.361411 INFO AppDaemon: Configuration read from: /home/hass/appdaemon/conf/appdaemon.yaml
2020-10-27 14:19:52.361551 INFO AppDaemon: Added log: AppDaemon
2020-10-27 14:19:52.361695 INFO AppDaemon: Added log: Error
2020-10-27 14:19:52.361830 INFO AppDaemon: Added log: Access
2020-10-27 14:19:52.361966 INFO AppDaemon: Added log: Diag
2020-10-27 14:19:52.387396 INFO AppDaemon: Loading Plugin HASS using class HassPlugin from module hassplugin
2020-10-27 14:19:52.415701 INFO HASS: HASS Plugin Initializing
2020-10-27 14:19:52.415901 INFO HASS: HASS Plugin initialization complete
2020-10-27 14:19:52.416366 INFO AppDaemon: Initializing HTTP
2020-10-27 14:19:52.416690 INFO AppDaemon: Using 'ws' for event stream
2020-10-27 14:19:52.420480 INFO AppDaemon: Starting API
2020-10-27 14:19:52.424249 INFO AppDaemon: Starting Admin Interface
2020-10-27 14:19:52.424574 INFO AppDaemon: Starting Dashboards
2020-10-27 14:19:52.437794 WARNING AppDaemon: Threads directive is deprecated apps - will be pinned. Use total_threads if you want to unpin your apps
2020-10-27 14:19:52.441772 INFO HASS: Connected to Home Assistant 0.116.2

no errors so far.