refactoring+loseConnection when unbind from server