Fix crash and close extra idle connections when we're above the limit.