Fixed #93 Build error with latest commit

Fixed #93 Build error with latest commit by explicitly close file "register_exporters.cpp" after generated.