added clearing of references of actors to stop them