Improve error messages.

Attempt to determine if error when sending a command is due to auth
issue and give more useful error in that case.