https://github.com/ParallelSSH/ssh-python/blob/master/ssh/session.pyx#L142
Introduced here for libssh 0.7; ssh_disconnect was rewritten since, so the underlying bug probably doesn't exist any more.