CC-462: Implement timeout for rpc connections