Fixes: #1990 some mistakes in supportDaemon and DaemonEvent code