Adding check to stop work if can't contact bitcoind