Cleaned up the handling of XMLRPC errors