explicit socket close，  refactor log