It's possible to close a module. gocr_finalize automatically takes care of closing all modules, but if you have some special reason to close a module, you can do it. Libgocr automatically deletes all the module functions of this module. Just call: