start cleanup in daemon and pass in shut down channel
Merge pull request #1234 from control-center/feature/CC-387

start cleanup in daemon and pass in shut down channel