cli: Catch xmlrpc exceptions during login/logout

* bugz/cli.py: Add try/except parts around xmlrpc calls