Log exceptions encountered during command execution as errors