Added cleanup in the pending list of the c++ version of the library (for cases when dlf_init is not called.