Improve error logging when status is not known.
Merge pull request #16 from sjamesr/improved_error_logging

Improve error logging when status is not known.