anchor.diff:        ! Get the arrays of data to be stored in the output file
      CALL FAST_PackTurbineType( ReKiBuf, DbKiBuf, IntKiBuf, Turbine, ErrStat2, ErrMsg2 )
         CALL SetErrStat(ErrStat2, ErrMsg2, ErrStat, ErrMsg, RoutineName )
  -      IF (ErrStat >= AbortErrLev ) RETURN
  +      if (ErrStat >= AbortErrLev ) then
  +         call cleanup()
  +         RETURN
  +      end if
  +      
         
      ArraySizes = 0   
      IF ( ALLOCATED(ReKiBuf)  ) ArraySizes(1) = SIZE(ReKiBuf)
  
positive.code:       end if      
     END IF
     
     
                    
  END SUBROUTINE FAST_CreateCheckpoint_T
  !----------------------------------------------------------------------------------------------------------------------------------
  !> Routine that calls FAST_RestoreFromCheckpoint_T for an array of Turbine data structures. 
  
negative.code:    
     END IF
        
        ! in case the Turbine data structure isn't empty on entry of this routine:
     call FAST_DestroyTurbineType( Turbine, ErrStat2, ErrMsg2 )   
     
        ! data from current time step:
     READ (unIn, IOSTAT=ErrStat2)   ArraySizes                       ! Number of reals, doubles, and integers written to file
     
  