Don't output command expansion without having reset std pipes
If the command did not run successfully, the command expansion would exit early, without resetting the standard pipes and the controlling terminal. Fix that.
If the command did not run successfully, the command expansion would exit early, without resetting the standard pipes and the controlling terminal. Fix that.