Check results for failed command and set color accordingly