socket stats at the end of connection