[Fixup] Add the cleanup function for each program in order to clean up the private function definition.