Adding destroy calls before setting objects to null to force destructor call (better for openGL resources than waiting for the GC).