event: close a race condition where we might re-enable listeners while they are already or about to be closed.