Add foreground waiter for daemon
This is useful for daemon supervisors on some systems