}
#endif
#ifdef SSH_AUDIT_EVENTS
PRIVSEP(audit_event(SSH_CONNECTION_CLOSE));
/* remove agent socket */
auth_sock_cleanup_proc(authctxt->pw);
finish_pam();
#endif /* USE_PAM */
packet_close();
if (use_privsep)