### Summary

When using paramiko and when doing a reboot then ansible will fail with "Failed to open session: SSH session not active". The target host is rebooted but ansible exits with error message.

Using ansible-base 2.10.4 the reboot works. Using 2.10.5rc1 or newer the reboot does not work.

Bug was caused by this PR https://github.com/ansible/ansible/pull/72688

Commenting out the lines 

        if not self._connected:
            return

from lib/ansible/plugins/connection/paramiko_ssh.py fixes the reboot.


### Issue Type

Bug Report

### Component Name

paramiko

### Ansible Version

```console (paste below)
$ ansible --version
ansible [core 2.11.0b4.post0]
  config file = /Users/kimmo/projects/ansible_bug/ansible.cfg
  configured module search path = ['/Users/kimmo/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /Users/kimmo/Library/Caches/pypoetry/virtualenvs/ansible-bug-RRBfm9wT-py3.9/lib/python3.9/site-packages/ansible
  ansible collection location = /Users/kimmo/.ansible/collections:/usr/share/ansible/collections
  executable location = /Users/kimmo/Library/Caches/pypoetry/virtualenvs/ansible-bug-RRBfm9wT-py3.9/bin/ansible
  python version = 3.9.2 (default, Mar 25 2021, 14:36:23) [Clang 12.0.0 (clang-1200.0.32.29)]
  jinja version = 2.11.3
  libyaml = True
```


### Configuration

```console (paste below)
$ ansible-config dump --only-changed
DEFAULT_HOST_LIST(/Users/kimmo/projects/ansible_bug/ansible.cfg) = ['/Users/kimmo/projects/ansible_bug/hosts.ini']
DEFAULT_REMOTE_USER(/Users/kimmo/projects/ansible_bug/ansible.cfg) = root
DEFAULT_TRANSPORT(/Users/kimmo/projects/ansible_bug/ansible.cfg) = paramiko
DEFAULT_VAULT_PASSWORD_FILE(env: ANSIBLE_VAULT_PASSWORD_FILE) = /Users/kimmo/ansible-vault.pass
DISPLAY_SKIPPED_HOSTS(env: ANSIBLE_DISPLAY_SKIPPED_HOSTS) = False
```


### OS / Environment

Target: debian 10

### Steps to Reproduce

<!--- Paste example playbooks or commands between quotes below -->
```yaml (paste below)
# Playbook:
- name: Reboot
  hosts: all
  tasks:
    - name: Reboot
      reboot:

```


### Expected Results

I expect target host to reboot and ansible to return success.

### Actual Results

Target host is rebooted but ansible reports failure.

```console (paste below)
PLAY [Reboot] **************************************************************************************************************************************************************************************************

TASK [Reboot] **************************************************************************************************************************************************************************************************
fatal: [test.example.com]: FAILED! => {"msg": "Failed to open session: SSH session not active"}

NO MORE HOSTS LEFT *********************************************************************************************************************************************************************************************

PLAY RECAP *****************************************************************************************************************************************************************************************************
test.example.com         : ok=1    changed=0    unreachable=0    failed=1    skipped=0    rescued=0    ignored=0
```

from distutils.version import LooseVersion
from binascii import hexlify
from ansible.errors import (
    AnsibleAuthenticationFailure,
    AnsibleConnectionFailure,
    AnsibleError,
    AnsibleFileNotFound,
)
from ansible.module_utils.compat.paramiko import PARAMIKO_IMPORT_ERR, paramiko
from ansible.module_utils.six import iteritems
from ansible.module_utils.six.moves import input
from ansible.plugins.connection import ConnectionBase
from ansible.utils.display import Display
from ansible.utils.path import makedirs_safe
from ansible.module_utils._text import to_bytes, to_native, to_text
display = Display()
AUTHENTICITY_MSG = """
paramiko: The authenticity of host '%s' can't be established.
The %s key fingerprint is %s.
Are you sure you want to continue connecting (yes/no)?
"""
SETTINGS_REGEX = re.compile(r'(\w+)(?:\s*=\s*|\s+)(.+)')
class MyAddPolicy(object):
    """
    Based on AutoAddPolicy in paramiko so we can determine when keys are added
    and also prompt for input.
    Policy for automatically adding the hostname and new host key to the
    local L{HostKeys} object, and saving it.  This is used by L{SSHClient}.
    """
    def __init__(self, new_stdin, connection):