fix_exec_conn: open log only after successful logon, keep buffer before that