Client side garbage collection for C++