fix for bitcoind service and adding custom exception

Signed-off-by: Yasen Yankov <iasen.iankov@gmail.com>