Refactor for future [skip ci]
Redirect output of failed command