[host] return err code when init failed