shell: Handle failures properly in pmlogger enable/disable code
shell: Handle failures properly in pmlogger enable/disable code

Closes #2331
Reviewed-by: Peter <a316049dd34607c62d4611d63ab22a6454add223@redhat.com>

dperpeet/cockpit,vbatts/cockpit,evol262/cockpit,Thermionix/cockpit,maxamillion/cockpit,xhad/cockpit,denysvitali/cockpit,cockpituous/cockpit,maxamillion/cockpit,haiyangd/cockpit_view,matobet/cockpit,mareklibra/cockpit,andreasn/cockpit,arilivigni/cockpit,dperpeet/cockpit,cockpit-project/cockpit,fridex/cockpit,Thermionix/cockpit,vanloswang/cockpit,sgallagher/cockpit,jscotka/cockpit,matobet/cockpit,zigitax/cockpit,vbatts/cockpit,fridex/cockpit,zigitax/cockpit,FireDrunk/cockpit,cockpituous/cockpit,larsu/cockpit,denysvitali/cockpit,stefwalter/cockpit,matobet/cockpit,Scribery/cockpit,netzvieh/cockpit,petervo/cockpit,evol262/cockpit,Scribery/cockpit,martinpitt/cockpit,larskarlitski/cockpit,cockpituous/cockpit,nmav/cockpit,moraleslazaro/cockpit,mvollmer/cockpit,evol262/cockpit,moraleslazaro/cockpit,vbatts/cockpit,evol262/cockpit,deryni/cockpit,netzvieh/cockpit,Scribery/cockpit,cockpit-project/cockpit,michalskrivanek/cockpit,michalskrivanek/cockpit,moraleslazaro/cockpit,arilivigni/cockpit,mvollmer/cockpit,stefwalter/cockpit,darioajr/cockpit,maxamillion/cockpit,larskarlitski/cockpit,deryni/cockpit,moraleslazaro/cockpit,jscotka/cockpit,petervo/cockpit,vanloswang/cockpit,martinpitt/cockpit,harishanand95/cockpit,matobet/cockpit,vbatts/cockpit,larsu/cockpit,cockpit-project/cockpit,arilivigni/cockpit,mareklibra/cockpit,sgallagher/cockpit,firebitsbr/cockpit,darioajr/cockpit,garrett/cockpit,nmav/cockpit,vanloswang/cockpit,jscotka/cockpit,petervo/cockpit,xhad/cockpit,Scribery/cockpit,moolitayer/cockpit,nmav/cockpit,michalskrivanek/cockpit,FireDrunk/cockpit,arilivigni/cockpit,vanloswang/cockpit,deryni/cockpit,vanloswang/cockpit,netzvieh/cockpit,larskarlitski/cockpit,Armstrong1992/cockpit,maxamillion/cockpit,petervo/cockpit,SotolitoLabs/cockpit,Armstrong1992/cockpit,cockpit-project/cockpit,mareklibra/cockpit,SotolitoLabs/cockpit,stefwalter/cockpit,harishanand95/cockpit,stefwalter/cockpit,xhad/cockpit,maxamillion/cockpit,haiyangd/cockpit_view,denysvitali/cockpit,deryni/cockpit,sgallagher/cockpit,harishanand95/cockpit,michalskrivanek/cockpit,sgallagher/cockpit,harishanand95/cockpit,andreasn/cockpit,dperpeet/cockpit,larskarlitski/cockpit,andreasn/cockpit,moraleslazaro/cockpit,xhad/cockpit,zigitax/cockpit,darioajr/cockpit,firebitsbr/cockpit,mareklibra/cockpit,fridex/cockpit,garrett/cockpit,denysvitali/cockpit,garrett/cockpit,garrett/cockpit,FireDrunk/cockpit,andreasn/cockpit,Thermionix/cockpit,michalskrivanek/cockpit,larsu/cockpit,netzvieh/cockpit,SotolitoLabs/cockpit,larsu/cockpit,vbatts/cockpit,Scribery/cockpit,Thermionix/cockpit,haiyangd/cockpit_view,stefwalter/cockpit,Scribery/cockpit,evol262/cockpit,Armstrong1992/cockpit,larsu/cockpit,larskarlitski/cockpit,vanloswang/cockpit,Armstrong1992/cockpit,matobet/cockpit,xhad/cockpit,stefwalter/cockpit,cockpituous/cockpit,dperpeet/cockpit,Scribery/cockpit,jscotka/cockpit,deryni/cockpit,nmav/cockpit,xhad/cockpit,mareklibra/cockpit,moraleslazaro/cockpit,andreasn/cockpit,garrett/cockpit,cockpituous/cockpit,deryni/cockpit,darioajr/cockpit,sgallagher/cockpit,evol262/cockpit,vbatts/cockpit,martinpitt/cockpit,dperpeet/cockpit,petervo/cockpit,cockpituous/cockpit,michalskrivanek/cockpit,cockpit-project/cockpit,stefwalter/cockpit,moolitayer/cockpit,arilivigni/cockpit,dperpeet/cockpit,andreasn/cockpit,haiyangd/cockpit_view,xhad/cockpit,SotolitoLabs/cockpit,fridex/cockpit,harishanand95/cockpit,netzvieh/cockpit,petervo/cockpit,sgallagher/cockpit,arilivigni/cockpit,SotolitoLabs/cockpit,dperpeet/cockpit,firebitsbr/cockpit,nmav/cockpit,haiyangd/cockpit_view,Thermionix/cockpit,mvollmer/cockpit,harishanand95/cockpit,moraleslazaro/cockpit,netzvieh/cockpit,denysvitali/cockpit,harishanand95/cockpit,moolitayer/cockpit,larsu/cockpit,firebitsbr/cockpit,mareklibra/cockpit,sgallagher/cockpit,petervo/cockpit,martinpitt/cockpit,moolitayer/cockpit,andreasn/cockpit,mvollmer/cockpit,deryni/cockpit,martinpitt/cockpit,matobet/cockpit,SotolitoLabs/cockpit,SotolitoLabs/cockpit,larskarlitski/cockpit,FireDrunk/cockpit,michalskrivanek/cockpit,arilivigni/cockpit,firebitsbr/cockpit,fridex/cockpit,jscotka/cockpit,FireDrunk/cockpit,darioajr/cockpit,jscotka/cockpit,Thermionix/cockpit,Armstrong1992/cockpit,zigitax/cockpit,larskarlitski/cockpit,mvollmer/cockpit,zigitax/cockpit,fridex/cockpit,moolitayer/cockpit,mareklibra/cockpit,vanloswang/cockpit