Add explicit code to clean up GMP structure when done.