Feature/logging improvements

Would we want to send the command's output to the log in the case where the command fails?