Fixed minor problem with unregistering logger listeners