Do cleanup at end of transformation