make rabbitmq thread safe, add timeout for webui when calling rpc