Server connection counter is updated in closeSession

Server connection counter is updated in closeSession