Adds destroy code for ESMF example