class AergoClientImpl implements AergoClient {

  @Override
  public void close() {
    try {
      final Context context = contextStorage.get();
      final GrpcClient grpcClient = context.get(GRPC_CLIENT);
      if (null == grpcClient) {
        throw new HerajException("No grpc client");
      }
      grpcClient.close();
    } catch (HerajException e) {
      throw e;
    } catch (Exception e) {
      throw new HerajException(e);
    }
  }

    AergoClientImpl(final ContextStorage<Context> contextStorage);

}