The new ssh_do_close() function itself causes a segfault if the