updated gubbins to restore if uci cmd fails