added wantDaemonize and wantCloseAllFDs functions