LAB[au] #1 Try putting some delay in between the different calls for closing dll's. Also try to use Freeentity, Freetexture that would be in types before deleting the type instance and before clearworld.