Lib main entry point.
Clean up a CObject. This static callback is invoked upon destruction of factory by c32 to close it down.