Bugfix: daemonize must happen before stack_init & removed useless calls