prevent dangling pointers by clearing the active assembly after it was deleted