Daemon now logs start and end time and fixed atexit() function. Replaced new operator with boost::shared_ptr.