* fix problem which counter will never stop even connection has closed.