Logging and daemonizing cleanup (451)