IResponseHandler API improved to provide better error handling.