close conn when auth done
fix suffix bug
close conn when disconnect
refactor tug logic