Create a finalize function to provide an opportunity to the mpool
base to release the internal structures.