Communication DaemonThread to DaemonApplication. Create
DaemonThreadListener class.
Some changes in Daemon.