ensure all the objects are deleted in the right context