added checks for JSONRPCException
Merge branch 'master' of github.com:halfmoonlabs/coinrpc