make wrap_xmlrpc_method more robust on failures