stop objects that have gone away causing segfaults