make SetDaemonize to return error