Update the TorrentManager XMLRPC test
Fix TorrentManager freeze and add extra logging