> To fix this we need a DESTROY function in QMPClient: > sub DESTROY { > my ($self) = @_; > > $self->{mux} = undef; > } > > This is enough to remove the circular reference. great! thanks for that fix.