buf fix: close conn