Log error from running command, if one is thrown