add "begin... rescue... end" in case the remote bitcoind is down