Fix printing for no results
Add some error handling in XMLRPC comm