The final fix is that we just weren't waiting for the paramiko.Transport to finish before we closed the server socket when the Handler returned.
The final fix is that we just weren't waiting for the paramiko.Transport to finish before we closed the server socket when the Handler returned.