Added error handling to the responses.
Created by: diamondq
Any errors from the server were being quietly ignored. This adds support for passing the error messages back to the original caller.
Also, I added a couple of additional logging to help reduce errors being quietly lost.