Fixed asserting objects vs other types
Now using transport purge function to remove resources