Switch between twisted xmlrpc and simplexmlrpcserver with a boolean
Stop Tribler from hanging on shutdown