Avoid loop break when daemonize option is on, now daemonize runs forever until sigkill or sigterm