Avoid reusing auto-allocated ports after connection close.