do some cleanup. daemonize and switch to syslog from cout