[services/textproc/brain] close the brain graph