Fix/3.0/issue 713

checks if instance is active while deregistering listeners