- fixed missing initialization of member
- fixed missing handling of socket disconnection