Java Client: wrap IOExceptions into JsonRpcExceptions.