Migrated to using wsh_ssh_disconnect in error handlers